fix ==> redirectToLink

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2025-06-20 17:34:47 +07:00
parent 370050eab9
commit 6772b0325b
5 changed files with 54 additions and 16 deletions

View file

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