Browse Source

update

pull/2021/head
yoyo837 8 years ago
committed by 偏右
parent
commit
f9c3004c64
  1. 3
      src/common/router.js

3
src/common/router.js

@ -80,6 +80,9 @@ function findMenuKey(menuData, path) {
if (lastIdx < 0) {
return null;
}
if (lastIdx === 0) {
return findMenuKey(menuData, '/');
}
// 如果没有,使用上一层的配置
return findMenuKey(menuData, path.substr(0, lastIdx));
}

Loading…
Cancel
Save