fix: 安装完成后清除旧的token和user数据

- 修复安装完成后点击前往登录时,旧的token导致直接跳转到后台的问题
- 安装完成后清除localStorage中的token和user数据
- 移除调试日志
This commit is contained in:
2026-05-04 09:43:03 +08:00
parent eb6b7d84f9
commit 9937fbbae2
2 changed files with 4 additions and 10 deletions
+2
View File
@@ -165,6 +165,8 @@ function goNext() {
}
function goLogin() {
localStorage.removeItem('token')
localStorage.removeItem('user')
resetInstallCheck()
router.push('/login')
}