fix: trigger resize in full screen to ensure that the height of other components is normal,fix #508

This commit is contained in:
Vben 2021-04-24 11:23:28 +08:00
parent 6b7f688eaf
commit ca717602a6

View File

@ -10,6 +10,7 @@
import { useDesign } from '/@/hooks/web/useDesign'; import { useDesign } from '/@/hooks/web/useDesign';
import { useHeaderSetting } from '/@/hooks/setting/useHeaderSetting'; import { useHeaderSetting } from '/@/hooks/setting/useHeaderSetting';
import { useMenuSetting } from '/@/hooks/setting/useMenuSetting'; import { useMenuSetting } from '/@/hooks/setting/useMenuSetting';
import { triggerWindowResize } from '/@/utils/event';
export default defineComponent({ export default defineComponent({
name: 'FoldButton', name: 'FoldButton',
@ -32,6 +33,7 @@
hidden: !isUnFold, hidden: !isUnFold,
}); });
setHeaderSetting({ show: isUnFold }); setHeaderSetting({ show: isUnFold });
triggerWindowResize();
} }
return { prefixCls, getIcon, handleFold }; return { prefixCls, getIcon, handleFold };