From 648cc80439c7eb87574727575a69f7edfbcd1dc3 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Fri, 30 Dec 2022 15:15:46 +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=AF=BC=E5=85=A5=E9=A1=B5=E9=9D=A2=E4=BF=9D?= =?UTF-8?q?=E7=95=99swagger=E4=B8=8A=E6=AC=A1=E9=85=8D=E7=BD=AE=E5=8F=82?= =?UTF-8?q?=E6=95=B0=E8=AE=B0=E5=BD=95=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1021412--user=郭雨琦 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001021412 --- .../definition/components/import/ApiImport.vue | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/api-test/frontend/src/business/definition/components/import/ApiImport.vue b/api-test/frontend/src/business/definition/components/import/ApiImport.vue index c51c50e918..5695896188 100644 --- a/api-test/frontend/src/business/definition/components/import/ApiImport.vue +++ b/api-test/frontend/src/business/definition/components/import/ApiImport.vue @@ -10,7 +10,7 @@ :destroy-on-close="true">
{{ $t('api_test.api_import.data_format') }}
- + {{ item.name }} @@ -106,7 +106,7 @@ :show-desc="true" :isShowEnable="isShowEnable" :suggestions="headerSuggestions" - :items="headers" /> + :items="headers"/>
{{ $t('api_test.definition.request.query_param') }}{{ $t('api_test.api_import.optional') }}: @@ -466,9 +466,9 @@ export default { clearAuthInfo() { this.headers = []; this.queryArguments = []; - this.headers.push(new KeyValue({ enable: true })); - this.queryArguments.push(new KeyValue({ enable: true })); - this.authConfig = { hashTree: [], authManager: {} }; + this.headers.push(new KeyValue({enable: true})); + this.queryArguments.push(new KeyValue({enable: true})); + this.authConfig = {hashTree: [], authManager: {}}; this.$refs.importAuth.initData(); }, changeAuthEnable() { @@ -476,6 +476,12 @@ export default { this.clearAuthInfo(); } }, + clearUrParameter(value) { + if (value !== 'Swagger2') { + this.clearAuthInfo(); + this.authEnable = false; + } + }, buildParam() { let param = {}; Object.assign(param, this.formData);