From 6d5d1922f5af49743ed677196de46a131e909042 Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 3 May 2026 19:39:05 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=AE=89=E8=A3=85=E5=AE=8C=E6=88=90?= =?UTF-8?q?=E5=90=8E=E7=94=A8window.location.href=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 使用router.push可能被路由守卫拦截或缓存影响, 改用window.location.href强制刷新页面,确保路由守卫 重新检查安装状态并正确加载登录页。 --- frontend/src/pages/install/index.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/install/index.vue b/frontend/src/pages/install/index.vue index 6960219..530a1bb 100644 --- a/frontend/src/pages/install/index.vue +++ b/frontend/src/pages/install/index.vue @@ -42,7 +42,7 @@ async function checkInstallStatus() { const data = await res.json() installStatus.value = data?.data if (data?.data?.installed) { - router.push('/login') + window.location.href = '/login' } } catch (error) { @@ -162,7 +162,7 @@ function goNext() { } function goLogin() { - router.push('/login') + window.location.href = '/login' } onMounted(() => {