feat: 插件加载提示只在第一次加载时弹出(后面插件会缓存下来)
This commit is contained in:
1 parent
ec4ed10afd
commit
b0cf5b312a
1 file changed
+6
-3
@@ -67,12 +67,15 @@ export default class PluginCenter {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const setAlertTip = key !== 'miaoDirectory' && this.globalAlertTip(`加载 ${name} 插件中`);
|
if (_component === undefined) {
|
||||||
if (_component === undefined) _component = await getComponent();
|
const setAlertTip = key !== "miaoDirectory" && this.globalAlertTip(`加载 ${name} 插件中`);
|
||||||
setAlertTip && setAlertTip(`加载 ${name} 插件完成`, {
|
_component = await getComponent();
|
||||||
|
setAlertTip &&
|
||||||
|
setAlertTip(`加载 ${name} 插件完成`, {
|
||||||
type: "success",
|
type: "success",
|
||||||
timeout: 2000
|
timeout: 2000
|
||||||
});
|
});
|
||||||
|
}
|
||||||
views.push(_component, VDirectories, VFiles, {
|
views.push(_component, VDirectories, VFiles, {
|
||||||
VirtualPageOption: {
|
VirtualPageOption: {
|
||||||
exitConfirm
|
exitConfirm
|
||||||
|
|||||||
Reference in new issue
Block a user