forked from github/dataease
fix(系统参数): 数据源检测时间间隔
This commit is contained in:
parent
024ce68021
commit
6110b0402b
@ -424,7 +424,7 @@ export default {
|
||||
return
|
||||
}
|
||||
if (this.formInline.dsCheckIntervalType === 'hour') {
|
||||
const pattern = '^([1-9]|[1-2][0-3])$'
|
||||
const pattern = '^([1-9]|[1][1-9]|[1-2][0-3])$'
|
||||
if (!new RegExp(pattern).test(this.formInline.dsCheckInterval)) {
|
||||
this.$message({ message: this.$t('cron.hour_limit'), type: 'warning', showClose: true })
|
||||
this.formInline.dsCheckInterval = 1
|
||||
|
Loading…
Reference in New Issue
Block a user