|
@@ -15,7 +15,9 @@ export const useAppStore = defineStore('main', {
|
|
contractInfo: getStorage('contractInfo') ?? {},
|
|
contractInfo: getStorage('contractInfo') ?? {},
|
|
projectId: getStorage('projectId') ?? '',
|
|
projectId: getStorage('projectId') ?? '',
|
|
contractId: getStorage('contractId') ?? '',
|
|
contractId: getStorage('contractId') ?? '',
|
|
- isAnimation: getStorage('isAnimation') ?? false
|
|
|
|
|
|
+ isAnimation: getStorage('isAnimation') ?? false,
|
|
|
|
+ //消息数据
|
|
|
|
+ msgCountData: getStorage('msgCountData') ?? {}
|
|
}),
|
|
}),
|
|
actions: {
|
|
actions: {
|
|
//系统信息
|
|
//系统信息
|
|
@@ -52,6 +54,10 @@ export const useAppStore = defineStore('main', {
|
|
this.isAnimation = value
|
|
this.isAnimation = value
|
|
setStorage('isAnimation', value)
|
|
setStorage('isAnimation', value)
|
|
},
|
|
},
|
|
|
|
+ setMsgCountData(value) {
|
|
|
|
+ this.msgCountData = value
|
|
|
|
+ setStorage('msgCountData', value)
|
|
|
|
+ },
|
|
//清除缓存和token
|
|
//清除缓存和token
|
|
clearStoreData() {
|
|
clearStoreData() {
|
|
//清除状态
|
|
//清除状态
|
|
@@ -64,6 +70,7 @@ export const useAppStore = defineStore('main', {
|
|
this.contractInfo = {}
|
|
this.contractInfo = {}
|
|
this.projectId = ''
|
|
this.projectId = ''
|
|
this.contractId = ''
|
|
this.contractId = ''
|
|
|
|
+ this.msgCountData = {}
|
|
clearStorage()
|
|
clearStorage()
|
|
},
|
|
},
|
|
}
|
|
}
|