From d18a571aa4dacab6928dbc8c6c45d5aa3f291afb Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期三, 31 七月 2024 23:34:01 +0800
Subject: [PATCH] update

---
 sub_pages/customer/trade/detail.vue |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/sub_pages/customer/trade/detail.vue b/sub_pages/customer/trade/detail.vue
index 5bf0d9e..dec4ff7 100644
--- a/sub_pages/customer/trade/detail.vue
+++ b/sub_pages/customer/trade/detail.vue
@@ -172,7 +172,7 @@
 
 					} else {
 						if (!item.stock || t > item.stock) {
-							this.$message.showToast('库存不足无法修改')
+							this.$message.showToast('库存不足无法修改')
 							return
 						}
 						this.addnum(item, (t - item.shopnum))
@@ -223,7 +223,9 @@
 			},
 
 			async refreshShopNum() {
-				this.shopnum = await this.$store.dispatch('countShopping');
+				this.shopnum = await this.$store.dispatch('countShopping');
+				this.$store.dispatch('sign_add','shopnum')
+				
 			},
 			async collectItem(dto) {
 				if (!this.currentInfo.id) {

--
Gitblit v1.9.3