From e89b10852381b2dc3c83e147194bccdec9017172 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期五, 02 八月 2024 11:41:50 +0800
Subject: [PATCH] 1

---
 sub_pages/customer/shop/shop.vue |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sub_pages/customer/shop/shop.vue b/sub_pages/customer/shop/shop.vue
index 7d50de6..4ce52a8 100644
--- a/sub_pages/customer/shop/shop.vue
+++ b/sub_pages/customer/shop/shop.vue
@@ -348,7 +348,7 @@
 				if (!item.stock) {
 					item.stock = 0
 				}
-				if (item.shopnum + addnum > item.stock) {
+				if (addnum > 0 & item.shopnum + addnum > item.stock) {
 					this.$message.showToast('库存不足,无法修改')
 					return
 				}

--
Gitblit v1.9.3