📅  最后修改于: 2022-03-11 14:54:57.882000             🧑  作者: Mango
Yup.object().shape({
no: Yup
.number()
.transform(value => (isNaN(value) ? undefined : value)) <---
.required("can not be empty")
})