Browse Source

修改 上传图片表单报错问题

master
邓宏 2 years ago
parent
commit
927b97c115
  1. 4
      uni_modules/d-form/components/d-form/d-form.vue

4
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.$nextTick(()=>{
this.$emit('imgs',this.imgs.map(v=>v.tempUrl).join(','))
})
},
pickerChange(e){
if(dataType(e.value[e.columnIndex].children, 'array')){

Loading…
Cancel
Save