From 78921416615f450f4cc29ec4f740fbf1b47d8b00 Mon Sep 17 00:00:00 2001 From: zhangwei <1504152376@qq.com> Date: 星期二, 19 八月 2025 17:18:28 +0800 Subject: [PATCH] 注册登录更改 --- src/router/index.ts | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/router/index.ts b/src/router/index.ts index 4f09942..5b3f172 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -107,7 +107,7 @@ /** 璺敱鐧藉悕鍗� */ const whiteList = ["/login"]; -const noLoginList = ["/index", "/register", "/registersucess"]; +const noLoginList = ["/index", "/register", "/registernav", "/registersucess"]; // const whiteList = []; const { VITE_HIDE_HOME } = import.meta.env; @@ -194,11 +194,11 @@ } } else { if (to.path !== "/login") { - if (whiteList.indexOf(to.path) !== -1) { + if (noLoginList.indexOf(to.path) !== -1) { next(); } else { removeToken(); - next({ path: "/login" }); + next({ path: "/index" }); } } else { next(); -- Gitblit v1.9.1