fix(plugin-layout): 默认路由如果不是菜单,则不需要添加到expandedKeys中,否则会导则defaultExpandAll不生效

This commit is contained in:
wanchun 2023-04-25 12:32:04 +08:00
parent 2be3cffcb6
commit d5b014ecc5

View File

@ -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];