Merge pull request #3580 from dataease/pr@dev@dataset

fix(系统参数): 数据源检测时间间隔
This commit is contained in:
王嘉豪 2022-11-01 15:44:40 +08:00 committed by GitHub
commit 99422ec5d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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