From 7655713319ae6b391ecedb883d67a405850fc3d2 Mon Sep 17 00:00:00 2001 From: wuweihua <88888888> Date: Tue, 20 Oct 2026 18:05:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=94=9F=E6=95=88=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../views/price/basic/components/CatalogActivateDialog.vue | 4 +++- bms-front/src/views/price/set/detail.vue | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bms-front/src/views/price/basic/components/CatalogActivateDialog.vue b/bms-front/src/views/price/basic/components/CatalogActivateDialog.vue index 772540ef..a2484689 100644 --- a/bms-front/src/views/price/basic/components/CatalogActivateDialog.vue +++ b/bms-front/src/views/price/basic/components/CatalogActivateDialog.vue @@ -94,7 +94,9 @@ function findPrev(row) { return prev ? normalizeToHour(prev.effectiveTime) : undefined } function pickDefault(prev) { - const now = formatHour(new Date()) + const d = new Date() + d.setHours(0, 0, 0, 0) + const now = formatHour(d) if (!prev) return now return toMs(now) >= toMs(prev) ? now : prev } diff --git a/bms-front/src/views/price/set/detail.vue b/bms-front/src/views/price/set/detail.vue index d5376fe6..eb17019e 100644 --- a/bms-front/src/views/price/set/detail.vue +++ b/bms-front/src/views/price/set/detail.vue @@ -202,7 +202,9 @@ function normalizeToHour(val) { } function formatNow() { - return formatHour(new Date()) + const d = new Date() + d.setHours(0, 0, 0, 0) + return formatHour(d) } function onActivateTimeChange(val) {