From d836432c3e6a4dcbd1080e4bc95cae14d5a339e0 Mon Sep 17 00:00:00 2001 From: "DESKTOP-1R2VSQH\\Lenovo ThinkPad E490" Date: Mon, 9 Sep 2024 13:19:14 +0700 Subject: [PATCH] fix router --- src/router/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); });