| | |
| | | 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(); |
| | |
| | | |
| | | const getShowFold = computed(() => appStore.getMultiTabsSetting.showFold); |
| | | |
| | | const getAutoCollapse = computed(() => appStore.getMultiTabsSetting.autoCollapse); |
| | | |
| | | function setMultipleTabSetting(multiTabsSetting: Partial<MultiTabsSetting>) { |
| | | appStore.setProjectConfig({ multiTabsSetting }); |
| | | } |
| | |
| | | getShowQuick, |
| | | getShowRedo, |
| | | getShowFold, |
| | | getAutoCollapse, |
| | | }; |
| | | } |