feat: 新的预约列表样式
This commit is contained in:
@@ -115,6 +115,11 @@ export const useBookingStore = defineStore('booking', () => {
|
||||
return result
|
||||
}
|
||||
|
||||
async function fetchSlotById(slotId: string) {
|
||||
const result = await get<TimeSlotWithBookingStatus>(`/time-slot/${slotId}`)
|
||||
return result
|
||||
}
|
||||
|
||||
return {
|
||||
slots,
|
||||
myBookings,
|
||||
@@ -131,6 +136,7 @@ export const useBookingStore = defineStore('booking', () => {
|
||||
completeBooking,
|
||||
markNoShow,
|
||||
fetchBookingHistory,
|
||||
fetchSlotById,
|
||||
fetchBookingById,
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user