优化validatorTimeGTCurrentDay

master
LiuJiaNan 2025-12-15 15:27:11 +08:00
parent fb6a9be855
commit befc8453d2
1 changed files with 1 additions and 1 deletions

View File

@ -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 {