liujq 4 年 前
コミット
edb994d875
1 ファイル変更2 行追加1 行削除
  1. 2 1
      src/views/house/components/popup/OldEdit.vue

+ 2 - 1
src/views/house/components/popup/OldEdit.vue

@@ -81,13 +81,14 @@ export default {
           this.loading = true
           this.$api.house.admoldhousedetail({id: this.curObj.id}).then(res => {
             let curData = res || {}
-            this.imagesArr = curData.images.split(',')
+            this.imagesArr = curData.images ? curData.images.split(',') : []
             this.cObj = curData || {}
             this.getDef()
             this.loading = false
           })
         } else {
           this.cObj = this.curObj
+          this.imagesArr = []
           this.getDef()
         }
       }