|
|
@@ -36,7 +36,7 @@ const handleAddClick = (date) => {
|
|
|
const getPageData = () => {
|
|
|
calendarLoading.value = true
|
|
|
$api
|
|
|
- .getDeliveryCalendarData({ month: dayjs().format('MM/YYYY') })
|
|
|
+ .getDeliveryCalendarData({ month: displayMonth.value.format('MM/YYYY') })
|
|
|
.then((res) => {
|
|
|
if (res.code === 200) {
|
|
|
calendarData.value = res.data
|
|
|
@@ -55,6 +55,7 @@ onMounted(() => {
|
|
|
const onPanelChange = (value: Dayjs) => {
|
|
|
// 同步更新 displayMonth,确保受控
|
|
|
displayMonth.value = value
|
|
|
+ getPageData()
|
|
|
}
|
|
|
|
|
|
const handleYearChange = (year: number, onChange: (date: Dayjs) => void) => {
|