fix router

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-09-09 13:19:14 +07:00
parent 6c2e9437a4
commit d836432c3e

View file

@ -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();
}); });