|
|
@@ -215,8 +215,9 @@ const { data: monthData } = await useAsyncData('funCalendarContent2', async () =
|
|
|
});
|
|
|
|
|
|
for (let i = 0; i < monthData.length; i++) {
|
|
|
- const startDay = CalendarUtils.solar2lunar(year, i + 1, 1);
|
|
|
- const endDay = CalendarUtils.solar2lunar(year, i + 1, DateUtils.getMonthDays(year, i + 1));
|
|
|
+ const month = monthData[i].month;
|
|
|
+ const startDay = CalendarUtils.solar2lunar(year, month, 1);
|
|
|
+ const endDay = CalendarUtils.solar2lunar(year, month, DateUtils.getMonthDays(year, month - 1));
|
|
|
monthData[i].desc = `${startDay.IMonthCn}${startDay.IDayCn} - ${endDay.IMonthCn}${endDay.IDayCn}`;
|
|
|
}
|
|
|
res.list.forEach(item => {
|