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 61c6aa4 commit 9fc8f24Copy full SHA for 9fc8f24
src/store/modules/permission.js
@@ -35,7 +35,7 @@ function filterAsyncRouter(asyncRouterMap, roles) {
35
36
function getNowRouter(asyncRouterMap, to) {
37
return asyncRouterMap.some(route => {
38
- if(route.path===to.path) {
+ if(to.path.indexOf(route.path) !==-1) {
39
return true;
40
}
41
else if (route.children && route.children.length) { //如果有孩子就遍历孩子
0 commit comments