guhongwei 5 سال پیش
والد
کامیت
de7ac1a914
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/layout/room/detailInfo.vue

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

@@ -145,7 +145,7 @@ export default {
       done();
       done();
     },
     },
     submitDrawer() {
     submitDrawer() {
-      if (this.drawerform) {
+      if (this.drawerform.title != null && this.drawerform.imgdir != null && this.drawerform.imgurl != null) {
         this.form.adverts.push(this.drawerform);
         this.form.adverts.push(this.drawerform);
       }
       }
       this.drawerform = {};
       this.drawerform = {};