update 调整样式·
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { nextTick, onMounted, ref } from 'vue';
|
||||
import { useUserStore } from '/@/store/modules/user.ts';
|
||||
import { setTheme } from '/@/assets/theme/themeList.ts';
|
||||
|
||||
export function useTheme() {
|
||||
const themeType = ref('light');
|
||||
@@ -7,6 +8,7 @@ export function useTheme() {
|
||||
const store = useUserStore();
|
||||
nextTick(() => {
|
||||
themeType.value = store.getThemeType;
|
||||
setTheme(themeType.value);
|
||||
});
|
||||
});
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user