Skip to content

Commit 9fc8f24

Browse files
author
zhouhero
committed
修复刷新侧边栏无法显示的bug
1 parent 61c6aa4 commit 9fc8f24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/store/modules/permission.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function filterAsyncRouter(asyncRouterMap, roles) {
3535

3636
function getNowRouter(asyncRouterMap, to) {
3737
return asyncRouterMap.some(route => {
38-
if(route.path===to.path) {
38+
if(to.path.indexOf(route.path) !==-1) {
3939
return true;
4040
}
4141
else if (route.children && route.children.length) { //如果有孩子就遍历孩子

0 commit comments

Comments
 (0)