feat: 加密登录数据,修改折线图表UI

This commit is contained in:
MTrun
2022-02-28 10:30:51 +08:00
parent 8d97bdc976
commit 3fe2fbfc08
8 changed files with 136 additions and 61 deletions
@@ -8,9 +8,9 @@ import { asideCollapsedWidth } from '@/settings/designSetting'
import { SettingStoreType } from './settingStore.d'
import { setLocalStorage, getLocalStorage } from '@/utils'
import { StorageEnum } from '@/enums/storageEnum'
const { GO_SYSTEM_SETTING } = StorageEnum
const { GO_SYSTEM_SETTING_STORE } = StorageEnum
const storageSetting: SettingStoreType = getLocalStorage(GO_SYSTEM_SETTING)
const storageSetting: SettingStoreType = getLocalStorage(GO_SYSTEM_SETTING_STORE)
// 全局设置
export const useSettingStore = defineStore({
@@ -38,7 +38,7 @@ export const useSettingStore = defineStore({
actions: {
setItem(key: string, value: boolean): void {
; (this as any)[key] = value
setLocalStorage(GO_SYSTEM_SETTING, this.$state)
setLocalStorage(GO_SYSTEM_SETTING_STORE, this.$state)
},
},
})