fix图片上传组件上传失败处理
This commit is contained in:
parent
907e3e7ff4
commit
713fbc1759
@ -115,7 +115,7 @@ function handleUploadSuccess(res) {
|
|||||||
if (res.code != 200) {
|
if (res.code != 200) {
|
||||||
proxy.$modal.msgError(`上传失败,原因:${res.msg}!`)
|
proxy.$modal.msgError(`上传失败,原因:${res.msg}!`)
|
||||||
proxy.$modal.closeLoading()
|
proxy.$modal.closeLoading()
|
||||||
fileList.value = []
|
fileList.value = fileList.value.slice(0, fileList.value.length - 1)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
uploadList.value.push({ name: res.data.fileName, url: res.data.url })
|
uploadList.value.push({ name: res.data.fileName, url: res.data.url })
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user