diff --git a/components/Coupons.vue b/components/Coupons.vue index 63a3b68..69b4bb2 100644 --- a/components/Coupons.vue +++ b/components/Coupons.vue @@ -76,7 +76,8 @@ export default { }, selectCoupon() { if (!this.radioModel) return - this.$emit('change', this.data.id) + // 已选中则可以取消选中 + this.$emit('change', this.data.checked ? '' : this.data.id) } } }