diff --git a/src/hooks/setting/useMultipleTabSetting.ts b/src/hooks/setting/useMultipleTabSetting.ts index 7caa75378..5908b9c20 100644 --- a/src/hooks/setting/useMultipleTabSetting.ts +++ b/src/hooks/setting/useMultipleTabSetting.ts @@ -15,6 +15,8 @@ export function useMultipleTabSetting() { const getShowFold = computed(() => appStore.getMultiTabsSetting.showFold); + const getAutoCollapse = computed(() => appStore.getMultiTabsSetting.autoCollapse); + function setMultipleTabSetting(multiTabsSetting: Partial) { appStore.setProjectConfig({ multiTabsSetting }); } @@ -24,5 +26,6 @@ export function useMultipleTabSetting() { getShowQuick, getShowRedo, getShowFold, + getAutoCollapse, }; } diff --git a/src/layouts/default/header/MultipleHeader.vue b/src/layouts/default/header/MultipleHeader.vue index bca048975..2ca05cd2e 100644 --- a/src/layouts/default/header/MultipleHeader.vue +++ b/src/layouts/default/header/MultipleHeader.vue @@ -1,5 +1,9 @@