From 216b7cea98a2c8bc99ac7e744f991e5df66e8af8 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Fri, 19 Aug 2022 16:03:45 +0800 Subject: [PATCH] =?UTF-8?q?revert:=20=E4=BB=A3=E7=A0=81=E5=9B=9E=E9=80=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/canvas/store/snapshot.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/canvas/store/snapshot.js b/frontend/src/components/canvas/store/snapshot.js index def8c93bfb..d2edd612ab 100644 --- a/frontend/src/components/canvas/store/snapshot.js +++ b/frontend/src/components/canvas/store/snapshot.js @@ -17,6 +17,9 @@ export default { state.styleChangeTimes++ state.cacheStyleChangeTimes++ }, + canvasCacheChange(state) { + state.cacheStyleChangeTimes++ + }, undo(state) { store.commit('setCurComponent', { component: null, index: null }) if (state.snapshotIndex > 0) { @@ -38,7 +41,7 @@ export default { }, recordSnapshot(state) { - console.log('recordSnapshot') + state.cacheStyleChangeTimes++ state.changeTimes++ // 添加新的快照 state.snapshotData[++state.snapshotIndex] = deepCopy(state.componentData)