Prechádzať zdrojové kódy

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

1004749546@qq.com 4 rokov pred
rodič
commit
afa972b18e
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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 {