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 5695896188..db3d0e0450 100644
--- a/api-test/frontend/src/business/definition/components/import/ApiImport.vue
+++ b/api-test/frontend/src/business/definition/components/import/ApiImport.vue
@@ -12,7 +12,7 @@
{{ $t('api_test.api_import.data_format') }}
- {{ item.name }}
+ {{ item.name }}
@@ -480,6 +480,7 @@ export default {
if (value !== 'Swagger2') {
this.clearAuthInfo();
this.authEnable = false;
+ this.swaggerUrlEnable = false;
}
},
buildParam() {
@@ -519,7 +520,9 @@ export default {
swaggerUrl: '',
modeId: this.formData.modeId,
};
+ this.clearAuthInfo();
this.swaggerUrlEnable = false;
+ this.authEnable = false;
this.selectedPlatformValue = 'Metersphere';
this.fileList = [];
removeGoBackListener(this.close);