From 05c220c5d3a1755c246f0b4281e9e56e7b595fa7 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Thu, 27 Oct 2022 20:46:55 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E5=A4=8D=E5=88=B6=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E5=90=8E=E5=B0=86=E7=84=A6=E7=82=B9=E5=AE=9A=E4=BD=8D?= =?UTF-8?q?=E5=88=B0=E6=96=B0=E8=A7=86=E5=9B=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/store/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/store/index.js b/frontend/src/store/index.js index f75bc770f1..cb392e68eb 100644 --- a/frontend/src/store/index.js +++ b/frontend/src/store/index.js @@ -259,6 +259,7 @@ const data = { } else { state.componentData.push(component) } + this.commit('setCurComponent', { component: component, index: index ? index : state.componentData.length - 1 }) }, removeViewFilter(state, componentId) { state.componentData = state.componentData.map(item => {