From cadecbe64c38b58ffc64bc200c873db554f617e9 Mon Sep 17 00:00:00 2001 From: mairuiming Date: Thu, 19 Mar 2026 19:08:06 +0800 Subject: [PATCH] 1 1 --- src/App.tsx | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/App.tsx b/src/App.tsx index 112d74d..4423ad5 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2144,6 +2144,13 @@ export default function App() { // 调整到下一个工作时间开始点 const adjustToNextWorkingHour = (date: Date, calculationMethod: string, weekendDays: number[] = [], excludedDates: string[] = []): Date => { const result = new Date(date); + if (!isBusinessDay(result, weekendDays, excludedDates)) { + while (!isBusinessDay(result, weekendDays, excludedDates)) { + result.setDate(result.getDate() + 1); + } + result.setHours(9, 0, 0, 0); + return result; + } if (calculationMethod === '内部') { const hour = result.getHours();