fixes: vehicles & offers

This commit is contained in:
Alexandro Uc Santos
2024-07-29 13:39:57 -06:00
parent d9a0cd626f
commit 0870d96f73
9 changed files with 101 additions and 51 deletions

View File

@@ -5,9 +5,10 @@ export default function useCalendar() {
const loads = ref([]);
const loading = ref(false);
const getCalendarDate = async(startDate, endDate) => {
const getCalendarDate = async(startDate, endDate, filter) => {
console.log(filter);
loading.value = true;
const resp = await getCalendar(startDate, endDate);
const resp = await getCalendar(startDate, endDate, filter);
if(resp === null) {
loading.value = false;
loads.value = [];