We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97e94c0 commit 391e770Copy full SHA for 391e770
src/store/modules/permission.js
@@ -1,5 +1,4 @@
1
-import { asyncRouterMap, constantRouterMap } from 'src/router';
2
-import { deepClone } from 'utils'
+import { asyncRouterMap, constantRouterMap } from 'src/router'
3
4
/**
5
* 通过meta.role判断是否与当前用户权限匹配
@@ -39,8 +38,8 @@ const permission = {
39
38
},
40
mutations: {
41
SET_ROUTERS: (state, routers) => {
42
- state.addRouters = deepClone(routers)
43
- state.routers = deepClone(constantRouterMap.concat(routers))
+ state.addRouters = routers
+ state.routers = constantRouterMap.concat(routers)
44
}
45
46
actions: {
0 commit comments