From f8d171d1248f2bdf21c044814212e04e103f0275 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Wed, 24 Mar 2021 16:18:08 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):?= =?UTF-8?q?=20=E6=8E=A5=E5=8F=A3=E5=BF=AB=E6=8D=B7=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E5=8F=A6=E5=AD=98=E6=96=B0=E7=94=A8=E4=BE=8B=20=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/definition/ApiDefinition.vue | 11 +-- .../components/case/ApiCaseItem.vue | 1 + .../components/case/ApiCaseList.vue | 5 +- .../components/debug/DebugDubboPage.vue | 68 +++++++++--------- .../components/debug/DebugHttpPage.vue | 69 +++++++++--------- .../components/debug/DebugJdbcPage.vue | 72 ++++++++++--------- .../components/debug/DebugTcpPage.vue | 52 +++++++------- 7 files changed, 147 insertions(+), 131 deletions(-) diff --git a/frontend/src/business/components/api/definition/ApiDefinition.vue b/frontend/src/business/components/api/definition/ApiDefinition.vue index 6f7a3c3e0a..a52ef37f03 100644 --- a/frontend/src/business/components/api/definition/ApiDefinition.vue +++ b/frontend/src/business/components/api/definition/ApiDefinition.vue @@ -81,13 +81,13 @@
- - - -
@@ -356,6 +356,9 @@ } this.$refs.apiList[0].exportApi(type); }, + refreshModule() { + this.$refs.nodeTree.list(); + }, refresh(data) { this.$refs.apiList[0].initTable(data); }, diff --git a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue index 2fcd266207..af12c60f6b 100644 --- a/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue +++ b/frontend/src/business/components/api/definition/components/case/ApiCaseItem.vue @@ -278,6 +278,7 @@ let url = '/api/module/getModuleByName/' + getCurrentProjectID() + "/" + this.api.protocol; this.$get(url, response => { if (response.data) { + this.$emit('refreshModule'); this.saveApi(row, response.data); } }); diff --git a/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue b/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue index 91d409047f..f63c1e8f92 100644 --- a/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue +++ b/frontend/src/business/components/api/definition/components/case/ApiCaseList.vue @@ -25,6 +25,7 @@ {{$t('commons.save')}} - +