mirror of
https://github.com/dataease/dataease.git
synced 2025-02-24 11:32:57 +08:00
fix(仪表板、数据大屏): 重做撤回操作部分信息冲突问题
This commit is contained in:
parent
d1df6f0531
commit
15b84469e7
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user