From f0ac73aa868ed84f9cca7d16c57f82cb8786f349 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=83=91=E5=AE=B6=E8=B1=AA?= Date: Tue, 2 Sep 2025 12:41:33 +0800 Subject: [PATCH] fix: correct formatYear function judgement --- src/components/header/header.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/header/header.js b/src/components/header/header.js index ceb2397d..35795386 100644 --- a/src/components/header/header.js +++ b/src/components/header/header.js @@ -269,6 +269,6 @@ export default function Header({ } function getYear(year, month) { - return typeof formatMonth === "function" ? formatYear(year, month) : year; + return typeof formatYear === "function" ? formatYear(year, month) : year; } }