fix: harden startup flow and auth re-entry

This commit is contained in:
Misaka
2026-03-21 11:02:17 +08:00
parent ed65312fff
commit 9a1f5a483e
10 changed files with 86 additions and 38 deletions

View File

@@ -133,7 +133,7 @@ export class ConfigManager {
if (this.initialized) return
// 检测是否为开发环境
const isDev = process.env.NODE_ENV === 'development' || !app.isPackaged
const isDev = process.env.NODE_ENV === 'development' || !(app?.isPackaged ?? false)
if (isDev) {
// 开发环境:配置文件放在项目根目录,方便编辑和调试