Commit 53199d07 by 黑潮

update: 修改

parent ea67813e
......@@ -501,7 +501,7 @@ export default {
// 库存
limitStock() {
if (Number(this.stock) < 0) {
if (Number(this.stock) <= 0) {
this.$message.error('请输入大于0的数字');
this.stock = '';
} else if (!Number(this.stock)) {
......
......@@ -1399,7 +1399,7 @@ export default {
},
limitStock() {
//库存
if (Number(this.giftForm.virtualStock) < 0) {
if (Number(this.giftForm.virtualStock) <= 0) {
this.$message.error('请输入大于0的数字');
this.giftForm.virtualStock = '';
} else if (!Number(this.giftForm.virtualStock)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment