diff --git a/pages/massif/info.vue b/pages/massif/info.vue index a9be2da..f1397b4 100644 --- a/pages/massif/info.vue +++ b/pages/massif/info.vue @@ -142,10 +142,10 @@ import request from '@/common/request' params:{id} }) if(res.statu){ - this.formData=res.data + this.formData={...res.data,image:res.data.image||[]} this.fields.date.value=[res.data.beginTime, res.data.endTime] this.fields.plantBaseInfoId.value=[res.data.plantBaseInfoId] - this.fields.image.value=(res.data.image||'').join(',') + this.fields.image.value=res.data.image?.join?.(',')||'' // this.fields.longitude.value=this.formData.longitude.split(";").map(v=>{ // var point=v.split(",") // if(point.length==2){