From 3754afc2707339cfd399c844891c60357b0139e5 Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Mon, 8 Dec 2025 09:13:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86validatorEndTimeGTCurrentDay=E6=94=B9?= =?UTF-8?q?=E6=88=90validatorTimeGTCurrentDay?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/index.d.ts | 4 ++-- utils/index.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/index.d.ts b/utils/index.d.ts index 2238b1f..311d73b 100644 --- a/utils/index.d.ts +++ b/utils/index.d.ts @@ -334,9 +334,9 @@ export function validatorEndTime(timeStart: string): { }; /** - * 验证结束时间是否大于等于当前时间 + * 验证时间是否大于等于当前时间 */ -export function validatorEndTimeGTCurrentDay(): { +export function validatorTimeGTCurrentDay(): { validator: (_: any, value: any) => Promise; }; diff --git a/utils/index.js b/utils/index.js index 249b47f..11a78e3 100644 --- a/utils/index.js +++ b/utils/index.js @@ -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();