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