From a8f6596e7a104199e3d5337e4d8b2c4c08838bbb Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 1 Jun 2022 11:47:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=BA=E6=99=AF=E9=87=8C=E9=9D=A2=E7=82=B9?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E6=8E=A5=E5=8F=A3=EF=BC=8C=E5=85=B3=E9=97=AD?= =?UTF-8?q?=E5=AF=BC=E5=85=A5=E7=AA=97=E5=8F=A3=E5=90=8E=E5=86=8D=E6=AC=A1?= =?UTF-8?q?=E7=82=B9=E5=AF=BC=E5=85=A5=E5=B0=B1=E7=A9=BA=E7=99=BD=E4=BA=86?= =?UTF-8?q?=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1013733 --user=王孝刚 【接口测试】场景里面点导入接口,关闭导入窗口后再次点导入就空白了 https://www.tapd.cn/55049933/s/1171013 --- .../api/automation/scenario/api/RelevanceApiList.vue | 4 +--- .../api/definition/components/module/ApiModule.vue | 5 ++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/api/RelevanceApiList.vue b/frontend/src/business/components/api/automation/scenario/api/RelevanceApiList.vue index 9a5904580a..8aa6c3c53e 100644 --- a/frontend/src/business/components/api/automation/scenario/api/RelevanceApiList.vue +++ b/frontend/src/business/components/api/automation/scenario/api/RelevanceApiList.vue @@ -104,9 +104,7 @@ export default { }, created() { this.condition.versionId = this.currentVersion; - if (this.currentProtocol !== null) { - this.initTable(); - } + this.initTable(); }, watch: { selectNodeIds() { diff --git a/frontend/src/business/components/api/definition/components/module/ApiModule.vue b/frontend/src/business/components/api/definition/components/module/ApiModule.vue index 79599adc3c..0ac63d98bc 100644 --- a/frontend/src/business/components/api/definition/components/module/ApiModule.vue +++ b/frontend/src/business/components/api/definition/components/module/ApiModule.vue @@ -151,13 +151,16 @@ export default { this.condition.protocol = this.$route.params.type; this.$emit('protocolChange', this.condition.protocol); this.list(); - }else if(!this.isRelevance){ + }else if (!this.isRelevance) { //展示页面是非引用页面才会查询上一次接口类型 this.$get('/api/module/getUserDefaultApiType/', response => { this.condition.protocol = response.data; this.$emit('protocolChange', this.condition.protocol); this.list(); }); + } else { + this.$emit('protocolChange', this.condition.protocol); + this.list(); } }, filter() {