Browse Source

修改活动满减删除

YY 2 years ago
parent
commit
7fd08ace52
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/views/platActivi/act/parts/goods/tabs-2.vue

+ 6 - 3
src/views/platActivi/act/parts/goods/tabs-2.vue

@@ -135,9 +135,12 @@ export default {
       }
     },
     // 删除
-    toDel({ data }) {
-      let newList = this.list.filter((i) => i.id != data.id);
-      this.$set(this, `list`, newList);
+    toDel(data) {
+      let list = this.list;
+      list.splice(data.index, 1);
+      // this.list = this.list.filter((i) => i.id != data.id);
+      // let newList = this.list.filter((i) => i.id != data.id);
+      // this.$set(this, `list`, newList);
     },
   },
   computed: {