首页+侧边栏

This commit is contained in:
2024-08-05 15:34:57 +08:00
parent ad0acc0f22
commit 38145f08ac
22 changed files with 308 additions and 314 deletions

View File

@@ -23,11 +23,15 @@ const permission = {
state.topbarRouters = routes
},
SET_SIDEBAR_ROUTERS: (state, routes) => {
console.log('=========:',routes)
console.log('==SET_SIDEBAR_ROUTERS==:',routes)
state.sidebarRouters = routes
},
},
actions: {
// 生成路由
GenerateRoutes({commit}) {
return new Promise(resolve => {