Browse Source

bug 修复

lilei 4 năm trước cách đây
mục cha
commit
73bdaa5f05
1 tập tin đã thay đổi với 4 bổ sung2 xóa
  1. 4 2
      pages/index/index.vue

+ 4 - 2
pages/index/index.vue

@@ -214,8 +214,9 @@
 						})
 						// 刷新购物车
 						this.getCartList()
+					}else{
+						uni.hideLoading()
 					}
-					uni.hideLoading()
 				})
 			},
 			// 删除购物车
@@ -232,8 +233,9 @@
 						})
 						// 刷新购物车
 						this.getCartList()
+					}else{
+						uni.hideLoading()
 					}
-					uni.hideLoading()
 				})
 			},
 			// 更新商品数量