update permission.js

This commit is contained in:
不做码农 2022-05-06 15:54:34 +08:00
parent c70c15646e
commit b6ec1d2e54

View File

@ -11,14 +11,12 @@ const modules =
const permission = {
state: {
routes: [],
addRoutes: [],
defaultRoutes: [],
topbarRouters: [],
sidebarRouters: []
},
mutations: {
SET_ROUTES: (state, routes) => {
state.addRoutes = routes
state.routes = constantRoutes.concat(routes)
},
SET_DEFAULT_ROUTES: (state, routes) => {