diff --git a/src/router/index.ts b/src/router/index.ts index d7a2bbac..f04f41bc 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -83,9 +83,8 @@ router.beforeEach(async (to, from, next) => { const checkAuthen = await authenticated(); if (!checkAuthen && to.meta.Auth) { logout(); + return; } - } else { - next(); } next(); });