new feature

This commit is contained in:
JaguarJack
2022-12-18 22:44:58 +08:00
parent 47a76af4b0
commit 17f2dc4d3c
20 changed files with 1441 additions and 564 deletions

View File

@@ -44,8 +44,9 @@ const guard = (router: Router) => {
}
next({ ...to, replace: true })
} catch (e) {
console.log(e)
removeAuthToken()
next({ path: `${WhiteListPage.LOGIN_PATH}?redirect=${to.path}` })
next({ path: `${WhiteListPage.LOGIN_PATH}?redirect=/${to.path}` })
}
}
}