From b67c9956b23ba3b25d5b36101ccf79a8da348feb Mon Sep 17 00:00:00 2001 From: Li Chuangbo Date: Fri, 22 Dec 2017 14:46:51 +1300 Subject: [PATCH] [improvement] fix coupon demo typo (#465) --- docs/demos/views/coupon.vue | 4 ++-- test/unit/specs/coupon.spec.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/demos/views/coupon.vue b/docs/demos/views/coupon.vue index e60c76ca1..5c7bc1e03 100644 --- a/docs/demos/views/coupon.vue +++ b/docs/demos/views/coupon.vue @@ -85,7 +85,7 @@ export default { return { ...this.coupon, id: 3, - avaliable: 0, + available: 0, reason: this.$t('coupon.reason') } }, @@ -94,7 +94,7 @@ export default { return { ...this.discountCoupon, id: 4, - avaliable: 0, + available: 0, reason: this.$t('coupon.reason') } } diff --git a/test/unit/specs/coupon.spec.js b/test/unit/specs/coupon.spec.js index d25bdd7e7..ae34f65ea 100644 --- a/test/unit/specs/coupon.spec.js +++ b/test/unit/specs/coupon.spec.js @@ -36,14 +36,14 @@ const emptyCoupon = { const disabledCoupon = { ...coupon, id: 4, - avaliable: 0, + available: 0, reason: '未满足使用门槛' }; const disabledDiscountCoupon = { ...discountCoupon, id: 5, - avaliable: 0, + available: 0, reason: '未满足使用门槛' };