需求修改删除附件BUG修改

This commit is contained in:
a0049873 2022-11-30 15:32:27 +08:00
parent baebd9f62b
commit 7c7ac61f77
1 changed files with 8 additions and 1 deletions

View File

@ -156,6 +156,7 @@
:action="upLoadUrl"
:headers="headers"
@change="handleChange"
@remove="handleRemove"
:maxCount="1"
>
<a-button
@ -332,11 +333,16 @@
const signOut = () => {
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,