From b5c87cf6abc46ccd9b9bb8795b235b738e8bb376 Mon Sep 17 00:00:00 2001 From: 1455668754 <88491446+1455668754@users.noreply.github.com> Date: Sun, 31 Mar 2024 07:01:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=201.=E4=BF=AE=E6=AD=A3ImageUpload=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E4=BD=BF=E7=94=A8=E6=97=B6=E6=97=A0=E6=B3=95=E6=AD=A3?= =?UTF-8?q?=E5=B8=B8=E5=9B=9E=E4=BC=A0value=202.=E4=BF=AE=E6=AD=A3ImageUpl?= =?UTF-8?q?oad=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E7=AC=AC=E4=B8=80=E6=AC=A1=E4=BC=A0=E5=80=BC=20(#3704?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Upload/src/components/ImageUpload.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/components/Upload/src/components/ImageUpload.vue b/src/components/Upload/src/components/ImageUpload.vue index e4662934f..ccbbefdcf 100644 --- a/src/components/Upload/src/components/ImageUpload.vue +++ b/src/components/Upload/src/components/ImageUpload.vue @@ -92,6 +92,10 @@ }) as UploadProps['fileList']; } }, + { + immediate: true, + deep: true, + }, ); function getBase64(file: File) { @@ -121,6 +125,7 @@ index !== -1 && fileList.value.splice(index, 1); const value = getValue(); isInnerOperate.value = true; + emit('update:value', value); emit('change', value); emit('delete', file); } @@ -168,6 +173,7 @@ info.onSuccess!(res.data); const value = getValue(); isInnerOperate.value = true; + emit('update:value', value); emit('change', value); } catch (e: any) { console.log(e);