修改页面

This commit is contained in:
浅念
2025-07-14 17:59:02 +08:00
parent 812e3c4b0c
commit 22ae0e86c8
18 changed files with 543 additions and 531 deletions
+4 -1
View File
@@ -99,7 +99,10 @@ async function handleLoginStatus(
): Promise<boolean> {
if (!userStore.isLogin && to.path !== RoutesAlias.Login && !to.meta.noLogin) {
userStore.logOut()
next(RoutesAlias.Login)
next({
path: RoutesAlias.Login,
query: to.query // 保留原始参数
})
return false
}
return true