From b0cf5b312a7629212ac3e24f7f4096610005c879 Mon Sep 17 00:00:00 2001 From: Miao_Spring <539943419@qq.com> Date: Thu, 5 Sep 2024 00:12:35 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=8F=92=E4=BB=B6=E5=8A=A0=E8=BD=BD?= =?UTF-8?q?=E6=8F=90=E7=A4=BA=E5=8F=AA=E5=9C=A8=E7=AC=AC=E4=B8=80=E6=AC=A1?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E6=97=B6=E5=BC=B9=E5=87=BA=EF=BC=88=E5=90=8E?= =?UTF-8?q?=E9=9D=A2=E6=8F=92=E4=BB=B6=E4=BC=9A=E7=BC=93=E5=AD=98=E4=B8=8B?= =?UTF-8?q?=E6=9D=A5=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/class/PluginCenter.ts | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/class/PluginCenter.ts b/src/class/PluginCenter.ts index 32e440e..499a4ee 100644 --- a/src/class/PluginCenter.ts +++ b/src/class/PluginCenter.ts @@ -67,12 +67,15 @@ export default class PluginCenter { return; } - const setAlertTip = key !== 'miaoDirectory' && this.globalAlertTip(`加载 ${name} 插件中`); - if (_component === undefined) _component = await getComponent(); - setAlertTip && setAlertTip(`加载 ${name} 插件完成`, { - type: "success", - timeout: 2000 - }); + if (_component === undefined) { + const setAlertTip = key !== "miaoDirectory" && this.globalAlertTip(`加载 ${name} 插件中`); + _component = await getComponent(); + setAlertTip && + setAlertTip(`加载 ${name} 插件完成`, { + type: "success", + timeout: 2000 + }); + } views.push(_component, VDirectories, VFiles, { VirtualPageOption: { exitConfirm