mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-05-19 23:29:51 +08:00
fix: 初始设置页全部检测通过时自动跳转仪表盘
修复全部检测项(Node.js/Git/CLI/配置文件)通过后仍停留在初始设置页的问题, 现在会自动刷新引擎状态并跳转到仪表盘。
This commit is contained in:
@@ -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 })
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user