|
@@ -68,14 +68,23 @@ export const useDialogStore = defineStore('dialog', {
|
|
|
|
|
|
// 弹窗统一关闭
|
|
|
closeAllDialog () {
|
|
|
- this.riskPersonnelDialogOpen = false
|
|
|
- this.riskLocationDialogOpen = false
|
|
|
- this.riskLocationDialogOpen = false
|
|
|
+ // this.riskPersonnelDialogOpen = false
|
|
|
+ // this.riskLocationDialogOpen = false
|
|
|
+ // this.riskActivityDialogOpen = false
|
|
|
+ // this.riskTestResDialogOpen = false
|
|
|
+ // this.riskAIDialogOpen = false
|
|
|
+ // this.riskAIDialogOpen2 = false
|
|
|
+
|
|
|
+ Object.keys(this.$state).forEach(key => {
|
|
|
+ this[key] = false
|
|
|
+
|
|
|
+ })
|
|
|
}
|
|
|
+
|
|
|
},
|
|
|
// 使用插件的配置选项
|
|
|
persist: {
|
|
|
key: 'dialog-store',// 自定义存储的键名
|
|
|
- storage: localStorage // 可以改为sessionStorage
|
|
|
+ storage: sessionStorage // 切换为 sessionStorage
|
|
|
}
|
|
|
})
|