mirror of
https://gitee.com/WeBank/fes.js.git
synced 2024-12-02 03:37:57 +08:00
fix(plugin-layout): 默认路由如果不是菜单,则不需要添加到expandedKeys中,否则会导则defaultExpandAll不生效
This commit is contained in:
parent
2be3cffcb6
commit
d5b014ecc5
@ -105,7 +105,7 @@ export default {
|
||||
return;
|
||||
}
|
||||
const activeMenu = menuArray.value[index];
|
||||
const arr = [activeMenu];
|
||||
const arr = activeMenu.children?.length ? [activeMenu] : [];
|
||||
while (index > 0) {
|
||||
index = index - 1;
|
||||
const lastMenu = menuArray.value[index];
|
||||
|
Loading…
Reference in New Issue
Block a user