Commit ba068eae656dedf66fd4616d5e98ade3ad537ee9
1 parent
1a87ee7c
修正侧边栏静态路由丢失问题
Showing
1 changed file
with
1 additions
and
1 deletions
ruoyi-ui/src/store/modules/permission.js
| @@ -15,7 +15,7 @@ const permission = { | @@ -15,7 +15,7 @@ const permission = { | ||
| 15 | state.routes = constantRoutes.concat(routes) | 15 | state.routes = constantRoutes.concat(routes) |
| 16 | }, | 16 | }, |
| 17 | SET_SIDEBAR_ROUTERS: (state, routers) => { | 17 | SET_SIDEBAR_ROUTERS: (state, routers) => { |
| 18 | - state.sidebarRouters = routers | 18 | + state.sidebarRouters = constantRoutes.concat(routers) |
| 19 | }, | 19 | }, |
| 20 | }, | 20 | }, |
| 21 | actions: { | 21 | actions: { |