From 3bf1e941d44eac0e8a740fc03e8f2e8e8fb16839 Mon Sep 17 00:00:00 2001 From: xiaoma <735878602@qq.com> Date: Wed, 29 Sep 2021 10:20:48 +0800 Subject: [PATCH] fix bug --- src/layout/components/Menu/index.vue | 12 +++++------- src/layout/index.vue | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) 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 @@