fix: theme (#281)

* fix: theme
This commit is contained in:
一万
2022-05-25 22:23:20 +08:00
committed by GitHub
parent e9602d23cb
commit bf8a7d98ac
2 changed files with 27 additions and 12 deletions

View File

@@ -28,7 +28,7 @@ export const useEpThemeStore = defineStore({
}
},
actions: {
setEpThemeColor(newColor) {
setEpThemeColor(newColor: string): void {
const layout = storageLocal.getItem("responsive-layout");
this.epTheme = layout?.theme;
this.epThemeColor = newColor;