diff --git a/frontend/src/business/components/api/test/components/request/database/DatabaseConfig.vue b/frontend/src/business/components/api/test/components/request/database/DatabaseConfig.vue index 7542ed13df..d362fe1bde 100644 --- a/frontend/src/business/components/api/test/components/request/database/DatabaseConfig.vue +++ b/frontend/src/business/components/api/test/components/request/database/DatabaseConfig.vue @@ -58,7 +58,11 @@ this.currentConfig = new DatabaseConfig(); }, rowSelect(config) { - this.currentConfig = config; + //防止清除后再点击该行无响应 + this.currentConfig = {}; + this.$nextTick(() => { + this.currentConfig = config; + }); } } } diff --git a/frontend/src/business/components/api/test/components/request/database/DatabaseConfigList.vue b/frontend/src/business/components/api/test/components/request/database/DatabaseConfigList.vue index 965a20e2c5..5e09c8431b 100644 --- a/frontend/src/business/components/api/test/components/request/database/DatabaseConfigList.vue +++ b/frontend/src/business/components/api/test/components/request/database/DatabaseConfigList.vue @@ -80,4 +80,8 @@ float: right; } + .el-table { + cursor: pointer; + } + diff --git a/frontend/src/business/components/api/test/components/request/database/DatabaseFrom.vue b/frontend/src/business/components/api/test/components/request/database/DatabaseFrom.vue index deb09fbaa9..9f6731fc03 100644 --- a/frontend/src/business/components/api/test/components/request/database/DatabaseFrom.vue +++ b/frontend/src/business/components/api/test/components/request/database/DatabaseFrom.vue @@ -39,9 +39,10 @@
- {{$t('commons.validate')}} + {{$t('commons.validate')}} {{$t('commons.update')}} - {{$t('commons.add')}} + {{$t('commons.clear')}} + {{$t('commons.add')}}
@@ -127,6 +128,9 @@ } }); }, + clear() { + this.currentConfig = new DatabaseConfig(); + }, validate() { this.result = this.$post('/api/database/validate', this.currentConfig, () => { this.$success(this.$t('commons.connection_successful'));