From 39026de7ee677fd3e509556aac02f9f2dc4bc8e3 Mon Sep 17 00:00:00 2001 From: zhangds Date: Tue, 11 Oct 2022 16:52:09 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E7=99=BD=E5=90=8D?= =?UTF-8?q?=E5=8D=95key=E6=95=B0=E9=87=8F=E4=B8=8D=E8=83=BD=E4=B8=BA0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangecode/add/add.js | 4 ++-- src/pages/plan/add/step2.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pages/exchangecode/add/add.js b/src/pages/exchangecode/add/add.js index c6162593..26b66bf5 100644 --- a/src/pages/exchangecode/add/add.js +++ b/src/pages/exchangecode/add/add.js @@ -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: "请输入正整数", diff --git a/src/pages/plan/add/step2.js b/src/pages/plan/add/step2.js index cc62c9e9..a2827db7 100644 --- a/src/pages/plan/add/step2.js +++ b/src/pages/plan/add/step2.js @@ -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,