fix: API 超时时间
This commit is contained in:
parent
a18015dbbd
commit
cba0c4130c
@ -1944,7 +1944,7 @@ export default {
|
||||
please_input_max_pool_size: 'Please enter the maximum number of connections',
|
||||
please_input_max_idle_time: 'Please enter the maximum idle (seconds)',
|
||||
please_input_acquire_increment: 'Please enter the growth number',
|
||||
please_input_query_timeout: 'Please enter query timeout,no less then zero',
|
||||
please_input_query_timeout: 'Please enter query timeout,Valid range [1 - 300]',
|
||||
please_input_connect_timeout: 'Please enter the connection timeout (seconds)',
|
||||
no_less_then_0: 'Parameters in advanced settings cannot be less than zero',
|
||||
port_no_less_then_0: 'Port cannot be less than zero',
|
||||
|
||||
@ -1936,7 +1936,7 @@ export default {
|
||||
please_input_max_pool_size: '請輸入最大連接數',
|
||||
please_input_max_idle_time: '請輸入最大空閑(秒)',
|
||||
please_input_acquire_increment: '請輸入增長數',
|
||||
please_input_query_timeout: '請輸入查詢超時,不小于零',
|
||||
please_input_query_timeout: '請輸入查詢超時,請填寫1-300正整數',
|
||||
please_input_connect_timeout: '請輸輸入連接超時(秒)',
|
||||
no_less_then_0: '高級設置中的參數不能小於零',
|
||||
port_no_less_then_0: '端口不能小於零',
|
||||
|
||||
@ -1936,7 +1936,7 @@ export default {
|
||||
please_input_max_pool_size: '请输入最大连接数',
|
||||
please_input_max_idle_time: '请输入最大空闲(秒)',
|
||||
please_input_acquire_increment: '请输入增长数',
|
||||
please_input_query_timeout: '请输入查询超时,不小于零',
|
||||
please_input_query_timeout: '请输入查询超时,填写1-300正整数',
|
||||
please_input_connect_timeout: '请输入连接超时(秒)',
|
||||
no_less_then_0: '高级设置中的参数不能小于零',
|
||||
port_no_less_then_0: '端口不能小于零',
|
||||
|
||||
@ -1170,6 +1170,10 @@ export default {
|
||||
callback(new Error(i18n.t('datasource.please_input_query_timeout')))
|
||||
return
|
||||
}
|
||||
if(value <= 0 || value > 300){
|
||||
callback(new Error(i18n.t('datasource.please_input_query_timeout')))
|
||||
return
|
||||
}
|
||||
callback()
|
||||
},
|
||||
next() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user