fix(仪表板、数据大屏): 重做撤回操作部分信息冲突问题

This commit is contained in:
wangjiahao 2025-01-08 15:32:47 +08:00 committed by 王嘉豪
parent d1df6f0531
commit 15b84469e7

View File

@ -97,6 +97,8 @@ export const snapshotStore = defineStore('snapshot', {
deepCopy(this.snapshotData[this.snapshotIndex]) || getDefaultCanvasInfo()
componentSnapshot.dvInfo.id = dvInfo.value.id
componentSnapshot.dvInfo.pid = dvInfo.value.pid
componentSnapshot.dvInfo.dataState = dvInfo.value.dataState
componentSnapshot.dvInfo.contentId = dvInfo.value.contentId
// undo 是当前没有记录
this.snapshotPublish(componentSnapshot)
this.styleChangeTimes++
@ -110,6 +112,8 @@ export const snapshotStore = defineStore('snapshot', {
const snapshotInfo = deepCopy(this.snapshotData[this.snapshotIndex])
snapshotInfo.dvInfo.id = dvInfo.value.id
snapshotInfo.dvInfo.pid = dvInfo.value.pid
snapshotInfo.dvInfo.dataState = dvInfo.value.dataState
snapshotInfo.dvInfo.contentId = dvInfo.value.contentId
this.snapshotPublish(snapshotInfo)
this.snapshotDisableTime = Date.now() + 3000
}