From 927b97c11591c31d4efb38a9031d8d75a2ab4ac6 Mon Sep 17 00:00:00 2001 From: dingtalk_umvbsp Date: Wed, 7 Jun 2023 16:27:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E8=A1=A8=E5=8D=95=E6=8A=A5=E9=94=99=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/d-form/components/d-form/d-form.vue | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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')){