Commit f9c3004c authored by yoyo837's avatar yoyo837 Committed by 偏右

update

parent 212bc889
...@@ -80,6 +80,9 @@ function findMenuKey(menuData, path) { ...@@ -80,6 +80,9 @@ function findMenuKey(menuData, path) {
if (lastIdx < 0) { if (lastIdx < 0) {
return null; return null;
} }
if (lastIdx === 0) {
return findMenuKey(menuData, '/');
}
// 如果没有,使用上一层的配置 // 如果没有,使用上一层的配置
return findMenuKey(menuData, path.substr(0, lastIdx)); return findMenuKey(menuData, path.substr(0, lastIdx));
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment