lrf402788946 5 年之前
父節點
當前提交
9dd31e2194
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/views/index.vue

+ 2 - 1
src/views/index.vue

@@ -296,11 +296,12 @@ export default {
           let Obj = JSON.parse(adv1.url);
           adv1.url = `/newsList/module/${Obj.id}?title=${Obj.title}`;
         }
+        this.$set(this, `adv`, { ...this.adv, adv1 });
         if (adv2 && adv2.type == '0') {
           let Obj = JSON.parse(adv2.url);
           adv2.url = `/newsList/module/${Obj.id}?title=${Obj.title}`;
         }
-        this.$set(this, `adv`, { adv1, adv2 });
+        this.$set(this, `adv`, { ...this.adv, adv2 });
       }
     },
   },