From 7c7ac61f77f4fcd25ed127d524095d4e2fc7a72d Mon Sep 17 00:00:00 2001 From: a0049873 <79py69t9wb@privaterelay.appleid.com> Date: Wed, 30 Nov 2022 15:32:27 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9C=80=E6=B1=82=E4=BF=AE=E6=94=B9=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E9=99=84=E4=BB=B6BUG=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/personalCenter/components/addApplication.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/front/src/views/personalCenter/components/addApplication.vue b/front/src/views/personalCenter/components/addApplication.vue index 5afd4ff0..b379257c 100644 --- a/front/src/views/personalCenter/components/addApplication.vue +++ b/front/src/views/personalCenter/components/addApplication.vue @@ -156,6 +156,7 @@ :action="upLoadUrl" :headers="headers" @change="handleChange" + @remove="handleRemove" :maxCount="1" > { window.close() } + const handleRemove = () => { + formName.enclosure = '' + } const handleChange = (info) => { if (info.file.status !== 'uploading') { console.log(info.file, info.fileList) } - + if (info.file.status === 'removed') { + formName.enclosure = '' + } if (info.file.status === 'done') { message.success(`${info.file.name} 文件上传成功`) formName.enclosure = info.file.response.data @@ -402,6 +408,7 @@ applySuccess, disabled, signOut, + handleRemove, processStartHandle, upLoadUrl, // baseURL,