From 6c3df49d09ddf7125914b18778dc0c249995b1f5 Mon Sep 17 00:00:00 2001
From: kongdeqiang <123456>
Date: 星期二, 09 四月 2024 17:31:37 +0800
Subject: [PATCH] fix: 新增手动抬杆查询页面
---
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