From e2b53042ccc6cabe4a76f9b33b17b251f878d371 Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期二, 02 一月 2024 17:21:26 +0800
Subject: [PATCH] 修改前端页面

---
 src/store/mutations.js |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/store/mutations.js b/src/store/mutations.js
index a5c6d1b..e8fc14e 100644
--- a/src/store/mutations.js
+++ b/src/store/mutations.js
@@ -9,17 +9,17 @@
     },
     SET_ROLELISt:(state,payload)=>{
         console.log('瑙﹀彂')
-        //澶勭悊宸︿晶鑿滃崟鏍忛�昏緫   
+        //澶勭悊宸︿晶鑿滃崟鏍忛�昏緫
             // type 2 : all admin
             // type 0 :  娉婅溅 id:2
-            // type 1 :  鎵ф硶 id:3 
+            // type 1 :  鎵ф硶 id:3
             // state.roles  // 鐢ㄦ埛鏉冮檺瀛楁
             // state.resultAsyncRoutes // 鐢ㄦ埛鏉冮檺璺敱
             switch (state.roles) {
                 case 0:
-                    state.resultAsyncRoutes = state.items.filter((item)=>item.id == 2);
+                    state.resultAsyncRoutes = state.items2.filter((item)=>item.id == 2);
                     localStorage.setItem('userRouters',JSON.stringify(state.resultAsyncRoutes));
-                    console.log(state.resultAsyncRoutes,state.roles,'0娉婅溅') 
+                    console.log(state.resultAsyncRoutes,state.roles,'0娉婅溅')
                     break;
                 case 1:
                     state.resultAsyncRoutes =state.items.filter((item)=>item.id == 3);
@@ -31,7 +31,7 @@
                     localStorage.setItem('userRouters',JSON.stringify(state.resultAsyncRoutes));
                       console.log(state.resultAsyncRoutes,state.roles,' 鍏ㄩ儴')//  涓嶇敤淇敼
                   break;
-                
+
                 default:
                     break;
             }
@@ -43,4 +43,4 @@
 
     }
 
-  }
\ No newline at end of file
+  }

--
Gitblit v1.9.1