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();
     },
     submitDrawer() {
-      if (this.drawerform) {
+      if (this.drawerform.title != null && this.drawerform.imgdir != null && this.drawerform.imgurl != null) {
         this.form.adverts.push(this.drawerform);
       }
       this.drawerform = {};