Skip to content

Commit

Permalink
fix: trigger resize in full screen to ensure that the height of other…
Browse files Browse the repository at this point in the history
… components is normal,fix #508
  • Loading branch information
anncwb committed Apr 24, 2021
1 parent 6b7f688 commit ca71760
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/layouts/default/tabs/components/FoldButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -32,6 +33,7 @@
hidden: !isUnFold,
});
setHeaderSetting({ show: isUnFold });
triggerWindowResize();
}
return { prefixCls, getIcon, handleFold };
Expand Down

0 comments on commit ca71760

Please sign in to comment.