From 096ee6bd5b7da3ea2d6655d9dcabf72d9d391346 Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Fri, 18 Dec 2020 11:35:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96):=20=E4=BF=AE=E5=A4=8D=E9=87=8D=E6=9E=84=E7=BC=BA?= =?UTF-8?q?=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/business/components/api/definition/ApiDefinition.vue | 2 +- .../api/definition/components/complete/EditCompleteHTTPApi.vue | 1 + .../api/definition/components/runtest/RunTestHTTPPage.vue | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/business/components/api/definition/ApiDefinition.vue b/frontend/src/business/components/api/definition/ApiDefinition.vue index 39ee408a7b..3ce95ebb1a 100644 --- a/frontend/src/business/components/api/definition/ApiDefinition.vue +++ b/frontend/src/business/components/api/definition/ApiDefinition.vue @@ -268,7 +268,7 @@ }, saveApi(data) { this.setTabTitle(data); - this.$refs.apiList[0].initApiTable(data); + this.$refs.apiList[0].initTable(data); }, showExecResult(row){ diff --git a/frontend/src/business/components/api/definition/components/complete/EditCompleteHTTPApi.vue b/frontend/src/business/components/api/definition/components/complete/EditCompleteHTTPApi.vue index cbfac1cf9f..a5a4fb7b07 100644 --- a/frontend/src/business/components/api/definition/components/complete/EditCompleteHTTPApi.vue +++ b/frontend/src/business/components/api/definition/components/complete/EditCompleteHTTPApi.vue @@ -104,6 +104,7 @@ if (!this.httpForm.path.startsWith("/") || this.httpForm.path.match(/\s/) != null) { callback(this.$t('api_test.definition.request.path_valid_info')); } + callback(); }; return { rule: { diff --git a/frontend/src/business/components/api/definition/components/runtest/RunTestHTTPPage.vue b/frontend/src/business/components/api/definition/components/runtest/RunTestHTTPPage.vue index 016912750a..d58117c3f8 100644 --- a/frontend/src/business/components/api/definition/components/runtest/RunTestHTTPPage.vue +++ b/frontend/src/business/components/api/definition/components/runtest/RunTestHTTPPage.vue @@ -206,6 +206,8 @@ data.request = JSON.stringify(this.api.request); data.method = this.api.method; data.url = this.api.url; + let id = getUUID(); + data.id = id; data.status = this.api.status; data.userId = this.api.userId; data.description = this.api.description;