fix router
This commit is contained in:
parent
6c2e9437a4
commit
d836432c3e
1 changed files with 1 additions and 2 deletions
|
|
@ -83,9 +83,8 @@ router.beforeEach(async (to, from, next) => {
|
||||||
const checkAuthen = await authenticated();
|
const checkAuthen = await authenticated();
|
||||||
if (!checkAuthen && to.meta.Auth) {
|
if (!checkAuthen && to.meta.Auth) {
|
||||||
logout();
|
logout();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
next();
|
|
||||||
}
|
}
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue