From ca717602a602ae90e5c175cdfda0bbcc200b72ad Mon Sep 17 00:00:00 2001 From: Vben Date: Sat, 24 Apr 2021 11:23:28 +0800 Subject: [PATCH] fix: trigger resize in full screen to ensure that the height of other components is normal,fix #508 --- src/layouts/default/tabs/components/FoldButton.vue | 2 ++ 1 file changed, 2 insertions(+) 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 };