fix: 设置超时时间

This commit is contained in:
taojinlong 2022-06-28 11:41:03 +08:00
parent c89dc628fd
commit d3a295508d

View File

@ -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
},