diff --git a/electron.vite.config.ts b/electron.vite.config.ts index 5a3d0671..21d8525c 100644 --- a/electron.vite.config.ts +++ b/electron.vite.config.ts @@ -50,7 +50,7 @@ export default defineConfig({ } }, optimizeDeps: { - exclude: ['chunk-QH6N6I7P.js', 'chunk-PB73W2YU.js', 'chunk-AFE5XGNG.js'] + exclude: ['chunk-QH6N6I7P.js', 'chunk-PB73W2YU.js', 'chunk-AFE5XGNG.js', 'chunk-QIJABHCK.js'] } } }) diff --git a/src/renderer/src/components/MinApp/index.tsx b/src/renderer/src/components/MinApp/index.tsx index fe82fef7..84daba12 100644 --- a/src/renderer/src/components/MinApp/index.tsx +++ b/src/renderer/src/components/MinApp/index.tsx @@ -207,7 +207,7 @@ export default class MinApp { static app: MinAppType | null = null static async start(app: MinAppType) { - if (MinApp.app?.id === app.id) { + if (app?.id && MinApp.app?.id === app?.id) { return }