19 lines
456 B
TypeScript
19 lines
456 B
TypeScript
import { computed } from 'vue';
|
|
import { useDesignSettingStore } from '@/store/modules/designSetting';
|
|
|
|
export function useDesignSetting() {
|
|
const designStore = useDesignSettingStore();
|
|
|
|
const getDarkTheme = computed(() => designStore.darkTheme);
|
|
|
|
const getAppTheme = computed(() => designStore.appTheme);
|
|
|
|
const getAppThemeList = computed(() => designStore.appThemeList);
|
|
|
|
return {
|
|
getDarkTheme,
|
|
getAppTheme,
|
|
getAppThemeList,
|
|
};
|
|
}
|