fix: 修复白名单key数量不能为0

This commit is contained in:
zhangds 2022-10-11 16:52:09 +08:00
parent cc0b86c123
commit 39026de7ee
2 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ export default class acclist extends React.Component {
model: {
//数据模型不可少
style: 1,
quantity: "",
quantity: 0,
plan_id: "",
title: "",
allow_repetition: 0,
@ -1307,7 +1307,7 @@ export default class acclist extends React.Component {
//校验规则
const rules = {
quantity: [
{ type: "required", message: "请输入key数量" },
{ type: "required", message: "key数量不能为0" },
{
type: "regExp",
message: "请输入正整数",

View File

@ -53,7 +53,7 @@ export default class acclist extends React.Component {
model: {
//数据模型不可少
style: 1,
quantity: 1,
quantity: 0,
allow_repetition: 0,
allow_loss: 0,
merge_stock: 1,