From 6e1545b61963e1532670a509f2f1409b3dbe2a0b Mon Sep 17 00:00:00 2001 From: metersphere-bot <78466014+metersphere-bot@users.noreply.github.com> Date: Fri, 2 Apr 2021 16:41:59 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20form-data=E8=AF=B7=E6=B1=82=E4=BD=93?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E6=88=90=E6=96=87=E4=BB=B6=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E6=97=A0=E5=8F=8D=E5=BA=94=20(#1872)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Authored-by: chenjianxing --- .../api/definition/components/ApiVariable.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/api/definition/components/ApiVariable.vue b/frontend/src/business/components/api/definition/components/ApiVariable.vue index 6ba88c2dbf..b4b0ae0db0 100644 --- a/frontend/src/business/components/api/definition/components/ApiVariable.vue +++ b/frontend/src/business/components/api/definition/components/ApiVariable.vue @@ -39,7 +39,7 @@ - + - + @@ -126,6 +126,7 @@ currentItem: null, requireds: REQUIRED, isSelectAll: true, + isActive: true } }, watch: { @@ -231,6 +232,7 @@ } else { item.contentType = 'text/plain'; } + this.reload(); }, selectAll() { this.parameters.forEach(item => { @@ -242,6 +244,12 @@ item.enable = false; }); }, + reload() { + this.isActive = false; + this.$nextTick(() => { + this.isActive = true; + }); + } }, created() { if (this.parameters.length === 0 || this.parameters[this.parameters.length - 1].name) {