未验证 提交 de41ac50 编写于 作者: Z zhuangchong 提交者: GitHub

timeoutAlarm model interval bug,You can now set negative integers (#3171)

Co-authored-by: Nqiaozhanwei <qiaozhanwei@outlook.com>
上级 75259dcc
......@@ -91,7 +91,8 @@
return false
}
// Verify timeout duration Non 0 positive integer
if (this.enable && !parseInt(this.interval) && !_.isInteger(this.interval)) {
const reg = /^[1-9]\d*$/
if (this.enable && !reg.test(this.interval)) {
this.$message.warning(`${this.$t('Timeout must be a positive integer')}`)
return false
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册