优化validatorTimeGTCurrentDay
parent
fb6a9be855
commit
befc8453d2
|
|
@ -530,7 +530,7 @@ export const validatorEndTime = (timeStart, message = "结束时间不能早于
|
|||
export const validatorTimeGTCurrentDay = (message = "需要大于当前时间") => {
|
||||
return {
|
||||
validator: (_, value) => {
|
||||
if (value && value <= dayjs().format("YYYY-MM-DD hh:mm:ss")) {
|
||||
if (value && value <= dayjs().format("YYYY-MM-DD HH:mm:ss")) {
|
||||
return Promise.reject(message);
|
||||
}
|
||||
else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue