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'),