From 77dacbda2d293ca45013df65c7a296a537a439ae Mon Sep 17 00:00:00 2001 From: wang <1509326266@qq.com> Date: Sat, 7 Sep 2024 01:45:04 +0800 Subject: [PATCH] fix(projects): fixed left menu mixed mode shrinks menu --- src/layouts/modules/global-menu/components/VerticalMenu.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/layouts/modules/global-menu/components/VerticalMenu.tsx b/src/layouts/modules/global-menu/components/VerticalMenu.tsx index 2d81f9f..2823e35 100644 --- a/src/layouts/modules/global-menu/components/VerticalMenu.tsx +++ b/src/layouts/modules/global-menu/components/VerticalMenu.tsx @@ -48,6 +48,8 @@ const VerticalMenu = memo(() => { const openKeys = getSelectedMenuKeyPath(route.matched); + const isMix = themeSettings.layout.mode === 'vertical-mix'; + const inlineCollapsed = useAppSelector(getSiderCollapse); const [stateOpenKeys, setStateOpenKeys] = useState(openKeys); @@ -87,8 +89,8 @@ const VerticalMenu = memo(() => {