修改页面
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user