fix ==> redirectToLink
This commit is contained in:
parent
370050eab9
commit
6772b0325b
5 changed files with 54 additions and 16 deletions
|
|
@ -123,10 +123,8 @@ const router = createRouter({
|
|||
router.beforeEach(async (to, from, next) => {
|
||||
if (to.meta.Auth) {
|
||||
const checkAuthen = await authenticated();
|
||||
console.log("checkAuthen", checkAuthen);
|
||||
|
||||
if (!checkAuthen && to.meta.Auth) {
|
||||
logout();
|
||||
logout(true);
|
||||
}
|
||||
}
|
||||
next();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue