调整config弹窗中cycle 字段的校验规则

This commit is contained in:
renpy 2023-08-21 15:57:32 +08:00
parent 2ddf0d9695
commit a7b71a554e

View File

@ -52,7 +52,10 @@
v-decorator="[
'days',
{
rules: [{ required: true, message: 'Please input days!' }],
rules: [
{ required: true, message: 'Please input days!' },
{ pattern: new RegExp('^[1-9]\\d*$'), message: 'Please input a positive integer!' },
],
initialVale: this.formVal.days
}
]"