them thong bao khi import anh sai

This commit is contained in:
huyt 2022-01-12 15:35:02 +07:00
parent 44b5203549
commit 882bba4df7

View File

@ -105,8 +105,8 @@ const Modaledit = (props) => {
setCrrData({...crrData, _id: result.data.data})
setDisableBtn(false)
}
} else if (result.data.status === 10004) {
swal("Thất bại", "Sửa thông tin thất bại!", "error");
} else if (result.data.status === 10002) {
swal("Thất bại", "Lỗi hệ thống!", "error");
} else {
swal("Thất bại", "Sửa thông tin thất bại!", "error");
}
@ -174,7 +174,13 @@ const Modaledit = (props) => {
listImg.unshift(data.data.toString())
setCrrImages(listImg)
setCheckDeleteMulti(false)
}
} else if (data.status === 10003) {
if (data.message === "Too many face in image") {
swal("Thất bại", "Ảnh có nhiều khuôn mặt!", "error");
} else {
swal("Thất bại", "Ảnh không hợp lệ", "error");
}
}
})
}
};