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(), }; }