mirror of
https://github.com/vbenjs/vben-admin-thin-next.git
synced 2025-01-24 10:33:47 +08:00
fix: trigger resize in full screen to ensure that the height of other components is normal,fix #508
This commit is contained in:
parent
6b7f688eaf
commit
ca717602a6
@ -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 };
|
||||||
|
Loading…
Reference in New Issue
Block a user