===优化

This commit is contained in:
禺狨
2023-03-22 18:53:21 +08:00
parent c032727588
commit 954386df83
7 changed files with 11 additions and 11 deletions

View File

@@ -26,7 +26,7 @@ export const UploadImageSub = (props: PropsInterface) => {
onChange(info: any) {
const { status, response } = info.file;
if (status === "done") {
if (response.code == 0) {
if (response.code === 0) {
message.success(`${info.file.name} 上传成功`);
} else {
message.error(response.msg);