A modern vue admin. It is based on Vue3, vite and TypeScript. It's fast!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

28 lines
790 B

import type { MultiTabsSetting } from '/#/config';
import { computed } from 'vue';
import { useAppStore } from '/@/store/modules/app';
export function useMultipleTabSetting() {
const appStore = useAppStore();
const getShowMultipleTab = computed(() => appStore.getMultiTabsSetting.show);
const getShowQuick = computed(() => appStore.getMultiTabsSetting.showQuick);
const getShowRedo = computed(() => appStore.getMultiTabsSetting.showRedo);
const getShowFold = computed(() => appStore.getMultiTabsSetting.showFold);
function setMultipleTabSetting(multiTabsSetting: Partial<MultiTabsSetting>) {
appStore.setProjectConfig({ multiTabsSetting });
}
return {
setMultipleTabSetting,
getShowMultipleTab,
getShowQuick,
getShowRedo,
getShowFold,
};
}