fix ==> redirectToLink
This commit is contained in:
parent
bf022bdb73
commit
1530d538ca
5 changed files with 50 additions and 14 deletions
|
|
@ -95,7 +95,8 @@ router.beforeEach(async (to, from, next) => {
|
|||
if (to.meta.Auth) {
|
||||
const checkAuthen = await authenticated();
|
||||
if (!checkAuthen && to.meta.Auth) {
|
||||
logout();
|
||||
logout(true);
|
||||
return;
|
||||
}
|
||||
}
|
||||
next();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue