From 0d7063077faa31f6576fd0d5e08aaf264d0edec6 Mon Sep 17 00:00:00 2001 From: zhonghua Date: Mon, 13 Apr 2026 10:07:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=B0=83=E6=95=B4=E6=8A=A5=E5=90=8D?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/contests/Create.vue | 10 ++++++---- pnpm-lock.yaml | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lesingle-creation-frontend/src/views/contests/Create.vue b/lesingle-creation-frontend/src/views/contests/Create.vue index 119e822..3445c1b 100644 --- a/lesingle-creation-frontend/src/views/contests/Create.vue +++ b/lesingle-creation-frontend/src/views/contests/Create.vue @@ -375,12 +375,14 @@ const disabledRegisterDate = (current: Dayjs | null) => { return current < timeRange.value[0].startOf("day") || current > timeRange.value[1].endOf("day") } const disabledSubmitDate = (current: Dayjs | null) => { - if (!registerTimeRange.value || !timeRange.value || !current) return false - return current < registerTimeRange.value[1].startOf("day") || current > timeRange.value[1].endOf("day") + if (!timeRange.value || !current) return false + return current < timeRange.value[0].startOf("day") || current > timeRange.value[1].endOf("day") + // if (!registerTimeRange.value || !timeRange.value || !current) return false + // return current < registerTimeRange.value[1].startOf("day") || current > timeRange.value[1].endOf("day") } const disabledReviewDate = (current: Dayjs | null) => { - if (!registerTimeRange.value || !timeRange.value || !current) return false - return current < registerTimeRange.value[1].startOf("day") || current > timeRange.value[1].endOf("day") + if (!submitTimeRange.value || !timeRange.value || !current) return false + return current < submitTimeRange.value[1].startOf("day") || current > timeRange.value[1].endOf("day") } const disabledPublishDate = (current: Dayjs | null) => { if (!reviewTimeRange.value || !timeRange.value || !current) return false diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7f91363..dbbb9ec 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -8,7 +8,7 @@ importers: .: {} - frontend: + lesingle-creation-frontend: dependencies: '@ant-design/icons-vue': specifier: ^7.0.1 @@ -1402,7 +1402,7 @@ packages: glob@7.2.3: resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==} - deprecated: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me + deprecated: Glob versions prior to v9 are no longer supported globals@13.24.0: resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==}