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);