liuyu 5 vuotta sitten
vanhempi
commit
f8a9e19ac6
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  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 = '';