mirror of
https://github.com/jekip/naive-ui-admin.git
synced 2026-02-15 18:52:27 +08:00
更新0.1.1版本
This commit is contained in:
19
src/hooks/setting/useDesignSetting.ts
Normal file
19
src/hooks/setting/useDesignSetting.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { computed, unref, ref } 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
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user