将validatorEndTimeGTCurrentDay改成validatorTimeGTCurrentDay

master
LiuJiaNan 2025-12-08 09:13:21 +08:00
parent 309abb52a0
commit 3754afc270
2 changed files with 5 additions and 5 deletions

4
utils/index.d.ts vendored
View File

@ -334,9 +334,9 @@ export function validatorEndTime(timeStart: string): {
};
/**
*
*
*/
export function validatorEndTimeGTCurrentDay(): {
export function validatorTimeGTCurrentDay(): {
validator: (_: any, value: any) => Promise<void | string>;
};

View File

@ -525,13 +525,13 @@ export const validatorEndTime = (timeStart) => {
}
/**
* 验证结束时间是否大于等于当前时间
* 验证时间是否大于等于当前时间
*/
export const validatorEndTimeGTCurrentDay = () => {
export const validatorTimeGTCurrentDay = () => {
return {
validator: (_, value) => {
if (value && value <= dayjs().format("YYYY-MM-DD hh:mm:ss")) {
return Promise.reject("结束时间必须大于当前时间");
return Promise.reject("需要大于当前时间");
}
else {
return Promise.resolve();