颜色更换

This commit is contained in:
MTrun
2021-12-15 22:16:16 +08:00
parent ed49e4add8
commit 13e7a64585
15 changed files with 154 additions and 56 deletions
+6 -1
View File
@@ -1,6 +1,6 @@
import { defineStore } from 'pinia';
import { store } from '@/store';
import { theme, borderRadius } from '@/settings/designSetting';
import { theme } from '@/settings/designSetting';
const { darkTheme, appTheme, appThemeList } = theme;
import { DesignStateType } from './designStore.d'
@@ -22,6 +22,11 @@ export const useDesignStore = defineStore({
return this.appThemeList;
},
},
actions: {
changeTheme():void {
this.darkTheme = !this.darkTheme
}
}
});
export function useDesignSettingWithOut() {