From b94b71d44d62802bb8093f64a202d0176fdade50 Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期二, 05 八月 2025 17:00:46 +0800
Subject: [PATCH] '一些更改'

---
 src/router/index.ts |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/src/router/index.ts b/src/router/index.ts
index 91e06ca..4f09942 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -106,8 +106,9 @@
 }
 
 /** 璺敱鐧藉悕鍗� */
-// const whiteList = ["/login"];
-const whiteList = [];
+const whiteList = ["/login"];
+const noLoginList = ["/index", "/register", "/registersucess"];
+// const whiteList = [];
 
 const { VITE_HIDE_HOME } = import.meta.env;
 
@@ -127,7 +128,7 @@
       if (!item.meta.title) return "";
       const Title = getConfig().Title;
       if (Title) document.title = `${item.meta.title} | ${Title}`;
-      else document.title = item.meta.title as string;
+      else document.title = item.meta.title;
     });
   }
   /** 濡傛灉宸茬粡鐧诲綍骞跺瓨鍦ㄧ櫥褰曚俊鎭悗涓嶈兘璺宠浆鍒拌矾鐢辩櫧鍚嶅崟锛岃�屾槸缁х画淇濇寔鍦ㄥ綋鍓嶉〉闈� */
@@ -141,7 +142,7 @@
     }
     // 寮�鍚殣钘忛椤靛悗鍦ㄦ祻瑙堝櫒鍦板潃鏍忔墜鍔ㄨ緭鍏ラ椤祑elcome璺敱鍒欒烦杞埌404椤甸潰
     if (VITE_HIDE_HOME === "true" && to.fullPath === "/welcome") {
-      next({ path: "/error/404" });
+      next({ path: "/index" });
     }
     if (_from?.name) {
       // name涓鸿秴閾炬帴

--
Gitblit v1.9.1