fix: redirect after setup and remove redundant breadcrumbs
Release / release (push) Canceled after 0s

This commit is contained in:
Qiufeng
2026-08-18 08:01:57 +08:00
parent 7237792424
commit d61bdf9da4
8 changed files with 41 additions and 22 deletions
+2 -2
View File
@@ -355,7 +355,7 @@ async function waitForSetupCompletion() {
if (unmounted) return false;
try {
const status = await getSetupStatus();
if (status.ready) return true;
if (!status.required && (status.ready || status.locked)) return true;
} catch {
// A short connection failure is expected while systemd restarts the service.
}
@@ -387,7 +387,7 @@ async function openLogin() {
window.clearInterval(countdownTimer);
completionMessage.value = '系统正在启动,请稍候。';
if (await waitForSetupCompletion()) {
window.location.assign('/login');
await router.replace('/login');
return;
}
completionMessage.value = '系统启动时间较长,请稍后刷新页面。';