From d119ec6e05995e1fd74591130937f3c2528c2576 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 23 Feb 2022 13:50:28 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E4=BF=AE=E6=94=B9=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96mqtt=E6=8F=92=E4=BB=B6=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/automation/scenario/component/PluginComponent.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/component/PluginComponent.vue b/frontend/src/business/components/api/automation/scenario/component/PluginComponent.vue index a3d5ab152c..ddcac89f03 100644 --- a/frontend/src/business/components/api/automation/scenario/component/PluginComponent.vue +++ b/frontend/src/business/components/api/automation/scenario/component/PluginComponent.vue @@ -199,6 +199,9 @@ export default { data: { handler: function () { Object.assign(this.request, this.data); + if (this.request.condition) { + this.changeDisplay(this.request.condition); + } }, deep: true } @@ -348,9 +351,6 @@ export default { if (this.request && this.request.active && this.pluginForm && this.pluginForm.setValue instanceof Function) { this.pluginForm.setValue(this.request); } - if (this.request.condition) { - this.changeDisplay(this.request.condition); - } }, } }