hookehuyr

fix

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