Skip to content
Snippets Groups Projects
Commit 391e7703 authored by Pan's avatar Pan
Browse files

fix router deepClone bug

parent 97e94c06
Branches
No related tags found
No related merge requests found
import { asyncRouterMap, constantRouterMap } from 'src/router';
import { deepClone } from 'utils'
import { asyncRouterMap, constantRouterMap } from 'src/router'
/**
* 通过meta.role判断是否与当前用户权限匹配
......@@ -39,8 +38,8 @@ const permission = {
},
mutations: {
SET_ROUTERS: (state, routers) => {
state.addRouters = deepClone(routers)
state.routers = deepClone(constantRouterMap.concat(routers))
state.addRouters = routers
state.routers = constantRouterMap.concat(routers)
}
},
actions: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment