liuyu 5 năm trước cách đây
mục cha
commit
f8a9e19ac6
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      src/layout/room/detailInfo.vue

+ 2 - 2
src/layout/room/detailInfo.vue

@@ -141,8 +141,8 @@ export default {
     handleClose(done) {
       if (this.imgurl) {
         const newdata = { imgurl: this.imgurl, imgdir: this.imgdir, title: this.title };
-        this.adverts.push(newdata);
-        this.$set(this.form, `adverts`, this.adverts);
+        this.form.adverts.push(newdata);
+        // this.$set(this.form, `adverts`, this.adverts);
         this.imgurl = '';
         this.imgdir = '';
         this.title = '';