fix: 初始设置页全部检测通过时自动跳转仪表盘

修复全部检测项(Node.js/Git/CLI/配置文件)通过后仍停留在初始设置页的问题,
现在会自动刷新引擎状态并跳转到仪表盘。
This commit is contained in:
晴天
2026-04-13 04:18:29 +08:00
parent 5575566806
commit dd9d7e5b6e

View File

@@ -189,6 +189,17 @@ async function runDetect(page) {
api.configureGitHttps().catch(() => {})
}
const nodeOk = node.installed
const allOk = nodeOk && cliOk && config.installed
// 全部通过 → 自动跳转到仪表盘
if (allOk) {
const engine = getActiveEngine()
if (engine?.detect) await engine.detect()
window.location.hash = '/dashboard'
return
}
renderSteps(page, { node, git, cliOk, config, version })
}