Преглед изворни кода

Signed-off-by: 1004749546@qq.com <1004749546@qq.com>
bug修改

1004749546@qq.com пре 4 година
родитељ
комит
afa972b18e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      pages/coupon/getCoupon/getCoupon.vue

+ 1 - 1
pages/coupon/getCoupon/getCoupon.vue

@@ -71,7 +71,7 @@
 				this.status = 'loading'
 				couponData({couponCode:code}).then(res=>{
 					this.status = 'onmore'
-					if (res.status == 200) {
+					if (res.status == 200 && res.data) {
 						this.couponInfo = res.data
 						this.isDisabled = false
 					} else {