Skip to content

Commit

Permalink
fix: fix the problem of blank bar when toggle the TagsView component
Browse files Browse the repository at this point in the history
  • Loading branch information
snowords committed Mar 14, 2022
1 parent 61e0e33 commit b1d9771
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/Setting/src/components/InterfaceDisplay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { ElSwitch } from 'element-plus'
import { useI18n } from '@/hooks/web/useI18n'
import { useAppStore } from '@/store/modules/app'
import { computed, ref, watch } from 'vue'
import { setCssVar } from '@/utils'
import { useDesign } from '@/hooks/web/useDesign'
const { getPrefixCls } = useDesign()
Expand Down Expand Up @@ -59,6 +60,8 @@ const localeChange = (show: boolean) => {
const tagsView = ref(appStore.getTagsView)
const tagsViewChange = (show: boolean) => {
// 切换标签栏显示时,同步切换标签栏的高度
setCssVar('--tags-view-height', show ? '35px' : '0px')
appStore.setTagsView(show)
}
Expand Down

0 comments on commit b1d9771

Please sign in to comment.