Commit ba068eae authored by RuoYi's avatar RuoYi

修正侧边栏静态路由丢失问题

parent 1a87ee7c
...@@ -15,7 +15,7 @@ const permission = { ...@@ -15,7 +15,7 @@ const permission = {
state.routes = constantRoutes.concat(routes) state.routes = constantRoutes.concat(routes)
}, },
SET_SIDEBAR_ROUTERS: (state, routers) => { SET_SIDEBAR_ROUTERS: (state, routers) => {
state.sidebarRouters = routers state.sidebarRouters = constantRoutes.concat(routers)
}, },
}, },
actions: { actions: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment