Ben Lin
2024-07-23 d9e0d8f77f29c00b14925f8398bc526682c9dd38
src/hooks/setting/useMultipleTabSetting.ts
@@ -1,8 +1,8 @@
import type { MultiTabsSetting } from '/#/config';
import type { MultiTabsSetting } from '#/config';
import { computed } from 'vue';
import { useAppStore } from '/@/store/modules/app';
import { useAppStore } from '@/store/modules/app';
export function useMultipleTabSetting() {
  const appStore = useAppStore();
@@ -15,6 +15,8 @@
  const getShowFold = computed(() => appStore.getMultiTabsSetting.showFold);
  const getAutoCollapse = computed(() => appStore.getMultiTabsSetting.autoCollapse);
  function setMultipleTabSetting(multiTabsSetting: Partial<MultiTabsSetting>) {
    appStore.setProjectConfig({ multiTabsSetting });
  }
@@ -24,5 +26,6 @@
    getShowQuick,
    getShowRedo,
    getShowFold,
    getAutoCollapse,
  };
}