diff --git a/src/layout/components/Menu/index.vue b/src/layout/components/Menu/index.vue index a21fbf3..70515a8 100644 --- a/src/layout/components/Menu/index.vue +++ b/src/layout/components/Menu/index.vue @@ -88,13 +88,11 @@ ); // 监听菜单收缩状态 - watch( - () => props.collapsed, - (newVal) => { - state.openKeys = newVal ? [] : getOpenKeys; - selectedKeys.value = currentRoute.name as string; - } - ); + // watch( + // () => props.collapsed, + // (newVal) => { + // } + // ); // 跟随页面路由变化,切换菜单选中状态 watch( diff --git a/src/layout/index.vue b/src/layout/index.vue index 45a9f72..4ac4a2b 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -2,7 +2,7 @@