forked from github/dataease
revert: 代码回退
This commit is contained in:
parent
f80b760326
commit
216b7cea98
@ -17,6 +17,9 @@ export default {
|
|||||||
state.styleChangeTimes++
|
state.styleChangeTimes++
|
||||||
state.cacheStyleChangeTimes++
|
state.cacheStyleChangeTimes++
|
||||||
},
|
},
|
||||||
|
canvasCacheChange(state) {
|
||||||
|
state.cacheStyleChangeTimes++
|
||||||
|
},
|
||||||
undo(state) {
|
undo(state) {
|
||||||
store.commit('setCurComponent', { component: null, index: null })
|
store.commit('setCurComponent', { component: null, index: null })
|
||||||
if (state.snapshotIndex > 0) {
|
if (state.snapshotIndex > 0) {
|
||||||
@ -38,7 +41,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
recordSnapshot(state) {
|
recordSnapshot(state) {
|
||||||
console.log('recordSnapshot')
|
state.cacheStyleChangeTimes++
|
||||||
state.changeTimes++
|
state.changeTimes++
|
||||||
// 添加新的快照
|
// 添加新的快照
|
||||||
state.snapshotData[++state.snapshotIndex] = deepCopy(state.componentData)
|
state.snapshotData[++state.snapshotIndex] = deepCopy(state.componentData)
|
||||||
|
Loading…
Reference in New Issue
Block a user