From d3a295508d32363ffa088b689cc22f0046421e7c Mon Sep 17 00:00:00 2001 From: taojinlong Date: Tue, 28 Jun 2022 11:41:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AE=BE=E7=BD=AE=E8=B6=85=E6=97=B6?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/system/datasource/DsForm.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/system/datasource/DsForm.vue b/frontend/src/views/system/datasource/DsForm.vue index 0894ddb6db..4bd16b2fb4 100644 --- a/frontend/src/views/system/datasource/DsForm.vue +++ b/frontend/src/views/system/datasource/DsForm.vue @@ -297,7 +297,8 @@ export default { acquireIncrement: 5, idleConnectionTestPeriod: 5, connectTimeout: 5, - customDriver: 'default' + customDriver: 'default', + queryTimeout: 30 } }, changeEdit() { @@ -318,6 +319,9 @@ export default { } else { this.form.configuration = JSON.parse(this.form.configuration) + if(this.form.configuration.queryTimeout === undefined){ + this.form.configuration.queryTimeout = 30 + } } this.disabled = this.params && this.params.id && this.params.showModel && this.params.showModel === 'show' && !this.canEdit },