diff --git a/packages/layouts/src/components/setting/components/Content.vue b/packages/layouts/src/components/setting/components/Content.vue index b2662649..6022befe 100644 --- a/packages/layouts/src/components/setting/components/Content.vue +++ b/packages/layouts/src/components/setting/components/Content.vue @@ -8,6 +8,11 @@ import { useHeaderSetting, useMultipleTabSetting, } from '@vben/hooks' + +import { context } from '../../../../bridge' +const { useAppConfig } = context +const { baseHandler } = useAppConfig() + const { t } = useI18n() const { @@ -26,80 +31,86 @@ const { getShowHeader } = useHeaderSetting() const { getShowMultipleTab, getShowQuick, getShowRedo, getShowFold } = useMultipleTabSetting() + +const eventHandler = (evt: HandlerSettingEnum, val: boolean) => { + baseHandler(evt, val) +} diff --git a/packages/layouts/src/components/setting/components/Features.vue b/packages/layouts/src/components/setting/components/Features.vue index 7173587a..b9076a2e 100644 --- a/packages/layouts/src/components/setting/components/Features.vue +++ b/packages/layouts/src/components/setting/components/Features.vue @@ -19,7 +19,8 @@ import { useI18n } from '@vben/locale' const { t } = useI18n() -const { useMenuSetting, useHeaderSetting, useRootSetting } = context +const { useMenuSetting, useHeaderSetting, useRootSetting, useAppConfig } = + context const { getContentMode, getLockTime } = useRootSetting() @@ -59,73 +60,85 @@ const some = triggerOptions.some((item) => item.value === unref(getTrigger)) if (!some) { setMenuSetting({ trigger: TriggerEnum.FOOTER }) } + +const { baseHandler } = useAppConfig() +const eventHandler = (evt: HandlerSettingEnum, val: boolean) => { + baseHandler(evt, val) +}