src/store/mutations.js
@@ -17,7 +17,7 @@ // 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泊车') break;