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,