Skip to content

Commit

Permalink
fix: setting内 全屏内容按钮逻辑
Browse files Browse the repository at this point in the history
  • Loading branch information
jinmao88 committed Sep 15, 2023
1 parent 0a45bc1 commit e728b9e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
3 changes: 2 additions & 1 deletion packages/hooks/src/config/useAppConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,10 @@ function handlerResults(
case HandlerSettingEnum.FULL_CONTENT:
return {
content: { fullScreen: value },
sidebar: { visible: !value, show: !value },
// sidebar: { visible: !value, show: !value },
header: { visible: !value, show: !value },
tabTar: { visible: !value, show: !value },
menu: { show: !value },
}

case HandlerSettingEnum.CONTENT_MODE:
Expand Down
13 changes: 5 additions & 8 deletions packages/layouts/src/components/setting/components/Content.vue
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
<script lang="ts" setup>
import SwitchItem from './SwitchItem.vue'
import { HandlerSettingEnum } from '@vben/constants'
import { context } from '../../../../bridge'
import { useI18n } from '@vben/locale'
const { t } = useI18n()
const {
useMultipleTabSetting,
import {
useRootSetting,
useMenuSetting,
useHeaderSetting,
useRootSetting,
} = context
useMultipleTabSetting,
} from '@vben/hooks'
const { t } = useI18n()
const {
getShowFooter,
Expand Down

0 comments on commit e728b9e

Please sign in to comment.