feat: 修改部分插件优先级,修改分包规则
This commit is contained in:
1 parent
171af1219e
commit
aa61489517
6 files changed
+74
-73
No files matched your search
@@ -75,7 +75,7 @@ export default class PluginCenter {
|
||||
}
|
||||
|
||||
if (_component === undefined) {
|
||||
const setAlertTip = key !== "miaoDirectory" && this.globalAlertTip(`加载 ${name} 插件中`);
|
||||
const setAlertTip = this.globalAlertTip(`加载 ${name} 插件中`);
|
||||
_component = await getComponent();
|
||||
setAlertTip &&
|
||||
setAlertTip(`加载 ${name} 插件完成`, {
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { nextTick, onBeforeUnmount, onMounted, ref } from 'vue';
|
||||
import { onBeforeUnmount, onMounted, ref } from 'vue';
|
||||
|
||||
const props = defineProps({
|
||||
// disable: {
|
||||
|
||||
@@ -18,7 +18,8 @@ const pluginConfig: Plugin = {
|
||||
},
|
||||
disable: false,
|
||||
group: [PluginGroup.default],
|
||||
func: Copy
|
||||
func: Copy,
|
||||
priority: -1
|
||||
};
|
||||
|
||||
export default pluginConfig;
|
||||
|
||||
@@ -15,7 +15,8 @@ const pluginConfig: registerComponentOption = {
|
||||
return false
|
||||
}
|
||||
return vFiles[0].name.endsWith('html')
|
||||
}
|
||||
},
|
||||
priority: 2
|
||||
}
|
||||
|
||||
export default pluginConfig
|
||||
|
||||
@@ -86,7 +86,7 @@ onMounted(() => {
|
||||
const _name = ap.list.audios[index].name
|
||||
currentFiles.value = currentFiles.value.filter(v => v.name !== _name)
|
||||
})
|
||||
// console.log({ ap, vueApp })
|
||||
vueApp
|
||||
});
|
||||
|
||||
onUnmounted(() => {
|
||||
|
||||
Reference in new issue
Block a user