From eabc1b9509ed42983efca02f43e98c84d0108d6c Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Tue, 31 May 2022 14:53:52 +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=E5=BC=95=E7=94=A8=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=97=B6=E5=87=BA=E7=8E=B0=E7=9A=84=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E6=A0=91=E7=9A=84=E7=B1=BB=E5=9E=8B=E5=92=8C?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E6=95=B0=E6=8D=AE=E4=B8=8D=E5=8C=B9=E9=85=8D?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1013312 --user=宋天阳 【接口测试】切换接口协议,场景导入接口列表没刷新 https://www.tapd.cn/55049933/s/1169897 --- .../components/api/automation/scenario/api/ApiRelevance.vue | 1 + .../components/api/definition/components/module/ApiModule.vue | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/api/automation/scenario/api/ApiRelevance.vue b/frontend/src/business/components/api/automation/scenario/api/ApiRelevance.vue index 24e900e98a..6f31bd3679 100644 --- a/frontend/src/business/components/api/automation/scenario/api/ApiRelevance.vue +++ b/frontend/src/business/components/api/automation/scenario/api/ApiRelevance.vue @@ -11,6 +11,7 @@ @protocolChange="handleProtocolChange" @refreshTable="refresh" @setModuleOptions="setModuleOptions" + :is-relevance="true" :is-read-only="true" ref="nodeTree"/> 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 07f924dddf..79599adc3c 100644 --- a/frontend/src/business/components/api/definition/components/module/ApiModule.vue +++ b/frontend/src/business/components/api/definition/components/module/ApiModule.vue @@ -91,6 +91,7 @@ export default { reviewId: String, pageSource: String, total: Number, + isRelevance: Boolean, options: { type: Array, default() { @@ -150,7 +151,8 @@ export default { this.condition.protocol = this.$route.params.type; this.$emit('protocolChange', this.condition.protocol); this.list(); - }else { + }else if(!this.isRelevance){ + //展示页面是非引用页面才会查询上一次接口类型 this.$get('/api/module/getUserDefaultApiType/', response => { this.condition.protocol = response.data; this.$emit('protocolChange', this.condition.protocol);