Browse Source

fix: 抽奖优惠券标签展示

From-wh 2 years ago
parent
commit
901c4bdd52
1 changed files with 1 additions and 1 deletions
  1. 1 1
      template/admin/src/pages/marketing/lottery/addGoods.vue

+ 1 - 1
template/admin/src/pages/marketing/lottery/addGoods.vue

@@ -223,7 +223,7 @@ export default {
     let keys = Object.keys(this.editData);
     keys.forEach((item) => {
       this.formValidate[item] = this.editData[item];
-      if (item === 'coupon_title') {
+      if (item === 'coupon_title' && this.editData[item]) {
         this.couponName.push({
           title: this.editData[item],
           id: this.editData.coupon_id,