From e47443adeffaf2b9aa7dbd6d6c5f04e8636d6c46 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Wed, 26 Jan 2022 17:05:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BB=84=E4=BB=B6=E5=B1=9E=E6=80=A7?= =?UTF-8?q?=E6=A1=86=E7=9B=B4=E6=8E=A5=E8=BE=93=E5=85=A5=E5=80=BC=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E4=BF=9D=E5=AD=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/canvas/store/snapshot.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/frontend/src/components/canvas/store/snapshot.js b/frontend/src/components/canvas/store/snapshot.js index 173725a674..4dcb1a7f8b 100644 --- a/frontend/src/components/canvas/store/snapshot.js +++ b/frontend/src/components/canvas/store/snapshot.js @@ -58,9 +58,7 @@ export default { state.lastSaveSnapshotIndex = deepCopy(state.snapshotIndex) }, recordStyleChange(state) { - if (state.curComponent) { - state.styleChangeTimes++ - } + state.styleChangeTimes++ } } }