diff --git a/uni_modules/d-form/components/d-form/d-form.vue b/uni_modules/d-form/components/d-form/d-form.vue index 4b9e4a2..3ba240f 100644 --- a/uni_modules/d-form/components/d-form/d-form.vue +++ b/uni_modules/d-form/components/d-form/d-form.vue @@ -643,7 +643,7 @@ import {computeArea} from '@/common/utils' var res=await request('/sys/common/upload',{ filePath:e.file[i].url }) - if(res.statu ||true){ + if(res.statu){ this.imgList.some((v,k)=>{ if(v==e.file[i]){ v.status='success' @@ -666,7 +666,9 @@ import {computeArea} from '@/common/utils' }else{ this.$emit("input",this.value.filter((v,k)=>k!=file.index)) } - this.$emit('imgs',this.imgs.map(v=>v.tempUrl).join(',')) + this.$nextTick(()=>{ + this.$emit('imgs',this.imgs.map(v=>v.tempUrl).join(',')) + }) }, pickerChange(e){ if(dataType(e.value[e.columnIndex].children, 'array')){