mirror of
https://github.com/PlayEdu/backend
synced 2025-12-23 05:39:38 +08:00
===优化
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user