From 8ed7eb9154426b8f5299340590592a982205114d Mon Sep 17 00:00:00 2001 From: ddshi <8811906+ddshi@user.noreply.gitee.com> Date: Sat, 28 Feb 2026 14:19:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20lunar-javascript=20?= =?UTF-8?q?API=20=E5=90=8D=E7=A7=B0=20getZodiac=20=E4=B8=BA=20getShengxiao?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 --- src/utils/lunar.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/lunar.ts b/src/utils/lunar.ts index 0446efe..07832e5 100644 --- a/src/utils/lunar.ts +++ b/src/utils/lunar.ts @@ -14,7 +14,7 @@ export interface LunarInfo { monthInChinese: string; // 农历月份中文 dayInChinese: string; // 农历日期中文 yearInChinese: string; // 农历年(甲子年等) - zodiac: string; // 生肖 + zodiac: string; // 生肖(属相) } /** @@ -43,7 +43,7 @@ export function getLunarInfo(date: Date): LunarInfo { monthInChinese: lunar.getMonthInChinese(), dayInChinese: lunar.getDayInChinese(), yearInChinese: lunar.getYearInChinese(), - zodiac: lunar.getZodiac(), + zodiac: lunar.getShengxiao(), }; }