fix: 外链支持

This commit is contained in:
JaguarJack
2023-05-28 14:22:01 +08:00
parent 9abd62b801
commit 03ea4759af
3 changed files with 14 additions and 11 deletions

View File

@@ -49,6 +49,7 @@ const guard = (router: Router) => {
}
next({ ...to, replace: true })
} catch (e) {
alert(e)
removeAuthToken()
next({ path: `${WhiteListPage.LOGIN_PATH}?redirect=/${to.path}` })
}