This commit is contained in:
xiaoma
2021-09-29 10:20:48 +08:00
parent ef4912636e
commit 3bf1e941d4
2 changed files with 6 additions and 8 deletions

View File

@@ -88,13 +88,11 @@
);
// 监听菜单收缩状态
watch(
() => props.collapsed,
(newVal) => {
state.openKeys = newVal ? [] : getOpenKeys;
selectedKeys.value = currentRoute.name as string;
}
);
// watch(
// () => props.collapsed,
// (newVal) => {
// }
// );
// 跟随页面路由变化,切换菜单选中状态
watch(