Browse Source

fix: 修复修改颜色不会存储本地的问题

MTrun 3 năm trước cách đây
mục cha
commit
58688e6e93
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/store/modules/designStore/designStore.ts

+ 1 - 0
src/store/modules/designStore/designStore.ts

@@ -50,6 +50,7 @@ export const useDesignStore = defineStore({
     setAppColor(color: AppThemeColorType): void {
       this.appTheme = color.hex
       this.appThemeDetail = color
+      setLocalStorage(GO_DESIGN_STORE, this.$state)
     }
   }
 })