From 85320bf4446cc3f24960ea153ec45cb7f32084b7 Mon Sep 17 00:00:00 2001 From: dataeaseShu <106045316+dataeaseShu@users.noreply.github.com> Date: Tue, 1 Nov 2022 17:14:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=A0=87=E9=A2=98?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E5=BB=B6=E8=BF=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/store/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frontend/src/store/index.js b/frontend/src/store/index.js index c7fded233e..58cf480849 100644 --- a/frontend/src/store/index.js +++ b/frontend/src/store/index.js @@ -205,6 +205,9 @@ const data = { } state.styleChangeTimes = 0 state.curComponent = component + if (index !== null && !isNaN(index)) { + state.componentData.splice(index, 1, component) + } state.curComponentIndex = index },