feat: 1.插件加载时会有全局提示。2.重命名miaoMessageProvider为miaoAlertTipProvider
This commit is contained in:
1 parent
3a18bb3cbd
commit
ec4ed10afd
16 files changed
+481
-465
No files matched your search
@@ -1,11 +1,15 @@
|
||||
import PluginCenter from "@/class/PluginCenter";
|
||||
import { alertTipType } from "@/types/type";
|
||||
import { reactive } from "vue";
|
||||
|
||||
let pluginCenter: PluginCenter
|
||||
|
||||
export default function usePluginCenter(){
|
||||
export const initPluginCenter = (globalAlertTip: alertTipType) => {
|
||||
if(!pluginCenter) {
|
||||
pluginCenter = reactive(new PluginCenter())
|
||||
pluginCenter = reactive(new PluginCenter(globalAlertTip))
|
||||
}
|
||||
}
|
||||
|
||||
export default function usePluginCenter(){
|
||||
return pluginCenter
|
||||
}
|
||||
Reference in new issue
Block a user