diff --git a/src/layouts/default/tabs/components/FoldButton.vue b/src/layouts/default/tabs/components/FoldButton.vue index 9d43d133..30a8b59f 100644 --- a/src/layouts/default/tabs/components/FoldButton.vue +++ b/src/layouts/default/tabs/components/FoldButton.vue @@ -10,6 +10,7 @@ import { useDesign } from '/@/hooks/web/useDesign'; import { useHeaderSetting } from '/@/hooks/setting/useHeaderSetting'; import { useMenuSetting } from '/@/hooks/setting/useMenuSetting'; + import { triggerWindowResize } from '/@/utils/event'; export default defineComponent({ name: 'FoldButton', @@ -32,6 +33,7 @@ hidden: !isUnFold, }); setHeaderSetting({ show: isUnFold }); + triggerWindowResize(); } return { prefixCls, getIcon, handleFold };