From fe2e40c3dfe166672d42b713aa8de6552045d603 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Thu, 27 Oct 2022 13:06:51 +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=8Ddubbo=E6=8F=92=E4=BB=B6=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E6=89=A7=E8=A1=8C=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1018955 --user=王孝刚 【接口测试】接口定义-dubbo协议-输入正确的Registry Center-Get provider list失败 https://www.tapd.cn/55049933/s/1279913 --- .../definition/components/request/dubbo/Interface.vue | 10 ++++++---- framework/sdk-parent/sdk/pom.xml | 8 -------- 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/api-test/frontend/src/business/definition/components/request/dubbo/Interface.vue b/api-test/frontend/src/business/definition/components/request/dubbo/Interface.vue index b857642631..5ff82f75b3 100644 --- a/api-test/frontend/src/business/definition/components/request/dubbo/Interface.vue +++ b/api-test/frontend/src/business/definition/components/request/dubbo/Interface.vue @@ -95,10 +95,12 @@ dubboProviders(param).then(response => { this.methodMap = {}; this.interfaces = []; - response.data.data.forEach(p => { - this.providerMap[p.serviceInterface] = p; - this.interfaces.push({label: p.service, value: p.serviceInterface}) - }); + if(response.data) { + response.data.forEach(p => { + this.providerMap[p.serviceInterface] = p; + this.interfaces.push({label: p.service, value: p.serviceInterface}) + }); + } if (this.methodMap[this.request.interface]) { this.methods = this.methodMap[this.request.interface].methods; } diff --git a/framework/sdk-parent/sdk/pom.xml b/framework/sdk-parent/sdk/pom.xml index 4b231d840e..f18f5cf48e 100644 --- a/framework/sdk-parent/sdk/pom.xml +++ b/framework/sdk-parent/sdk/pom.xml @@ -187,10 +187,6 @@ mail javax.mail - - fastjson - com.alibaba - @@ -305,10 +301,6 @@ ApacheJMeter_core org.apache.jmeter - - fastjson - com.alibaba -