fix: 修复白名单key数量不能为0
This commit is contained in:
parent
cc0b86c123
commit
39026de7ee
|
@ -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: "请输入正整数",
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue