mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
颜色更换
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user