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) {