上传错误

This commit is contained in:
NiSen
2023-07-20 09:27:55 +08:00
parent b3c48386b9
commit b86da7496d

View File

@@ -403,6 +403,9 @@ const handleChange = (info) => {
} else if (status === "error") {
state.progressColor = 'red'
state.status = 'error'
if (info.file.response.message) {
return message.error(`${info.file.response.message},上传失败`);
}
message.error(`${info.file.name}上传失败`);
}
};