From 445c059cc3c0ce36269b84cd52298af378837913 Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期二, 05 八月 2025 10:24:31 +0800
Subject: [PATCH] '个人中心状态判断'

---
 src/router/index.ts |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/router/index.ts b/src/router/index.ts
index a4d8e99..1d1dbca 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -137,7 +137,7 @@
   }
   if (Cookies.get(multipleTabsKey) && userInfo) {
     // 鏃犳潈闄愯烦杞�403椤甸潰
-    if (to.meta?.roles && !isOneOfArray(to.meta?.roles, userInfo?.roles)) {
+    if (to.meta?.roles && !isOneOfArray(to.meta?.roles, userInfo?.exRoles)) {
       next({ path: "/error/403" });
     }
     // 寮�鍚殣钘忛椤靛悗鍦ㄦ祻瑙堝櫒鍦板潃鏍忔墜鍔ㄨ緭鍏ラ椤祑elcome璺敱鍒欒烦杞埌404椤甸潰
@@ -195,7 +195,6 @@
   } else {
     if (to.path !== "/login") {
       if (whiteList.indexOf(to.path) !== -1) {
-        console.log(to.path, "====1", noLoginList.indexOf(to.path));
         next();
       } else {
         // if (noLoginList.indexOf(to.path) == -1) {

--
Gitblit v1.9.1