hookehuyr

fix

<!--
* @Date: 2024-01-15 13:35:51
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-01-24 10:26:55
* @LastEditTime: 2024-01-24 13:05:17
* @FilePath: /xysBooking/src/views/booking.vue
* @Description: 预约页面
-->
......@@ -118,7 +118,7 @@ const dates = ref([]); // 当月日期集合
onMounted(async () => {
const raw_date = new Date();
const { code, data } = await canReserveDateListAPI({ month: `${raw_date.getFullYear()}-${raw_date.getMonth() + 1}` });
const { code, data } = await canReserveDateListAPI({ month: `${raw_date.getFullYear()}-${(raw_date.getMonth() + 1).toString().padStart(2, '0')}` });
if (code) {
// 日期列表
dates_list.value = data;
......