From 8f22d2adc5c4da182cbbb14b372602b596e718a7 Mon Sep 17 00:00:00 2001 From: _ChingC Date: Mon, 29 Aug 2022 20:10:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dcore=E8=A2=AB=E9=87=8D?= =?UTF-8?q?=E5=A4=8Ddispose=E9=80=A0=E6=88=90=E7=9A=84=E9=97=AA=E9=80=80?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E5=92=8C=E4=B8=80=E4=B8=AAbuild=20warning?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/main/coreLoader/index.ts | 1 + packages/renderer/src/hooks/caller/asst.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/main/coreLoader/index.ts b/packages/main/coreLoader/index.ts index 72ffad3b..4263fdd0 100644 --- a/packages/main/coreLoader/index.ts +++ b/packages/main/coreLoader/index.ts @@ -190,6 +190,7 @@ class CoreLoader { dep.close() } this.DLib.close() + CoreLoader.loadStatus = false } /** diff --git a/packages/renderer/src/hooks/caller/asst.ts b/packages/renderer/src/hooks/caller/asst.ts index a778672f..4931c01e 100644 --- a/packages/renderer/src/hooks/caller/asst.ts +++ b/packages/renderer/src/hooks/caller/asst.ts @@ -1,7 +1,7 @@ import useSettingStore from '@/store/settings' export default { - load: async (showTip = true) => { + load: async function (showTip = true) { let loaded = true const components: Partial> = { 'Maa Core': await window.ipcRenderer.invoke('main.ComponentManager:getStatus', 'Maa Core'),