From 4d6a7949acc21791e710e8b2455231d48e90857a Mon Sep 17 00:00:00 2001 From: 819527061@qq.com <123456> Date: 星期二, 07 一月 2025 16:49:26 +0800 Subject: [PATCH] 月卡 --- src/store/mutations.js | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/store/mutations.js b/src/store/mutations.js index e8fc14e..a91e245 100644 --- a/src/store/mutations.js +++ b/src/store/mutations.js @@ -20,20 +20,25 @@ state.resultAsyncRoutes = state.items2.filter((item)=>item.id == 2); localStorage.setItem('userRouters',JSON.stringify(state.resultAsyncRoutes)); console.log(state.resultAsyncRoutes,state.roles,'0娉婅溅') - break; + break; case 1: state.resultAsyncRoutes =state.items.filter((item)=>item.id == 3); localStorage.setItem('userRouters',JSON.stringify(state.resultAsyncRoutes)); console.log(state.resultAsyncRoutes,state.roles,'1鎵ф硶') break; - case 2: + case 2: state.resultAsyncRoutes = state.items; localStorage.setItem('userRouters',JSON.stringify(state.resultAsyncRoutes)); console.log(state.resultAsyncRoutes,state.roles,' 鍏ㄩ儴')// 涓嶇敤淇敼 break; + case 3: + state.resultAsyncRoutes = state.items3.filter((item)=>item.id == 2); + localStorage.setItem('userRouters',JSON.stringify(state.resultAsyncRoutes)); + console.log(state.resultAsyncRoutes,state.roles,'3APP绔�') + break; default: - break; + break; } }, -- Gitblit v1.9.1