diff --git a/src/composables/useDay.ts b/src/composables/useDay.ts index 80f6c4b..1213985 100644 --- a/src/composables/useDay.ts +++ b/src/composables/useDay.ts @@ -12,7 +12,7 @@ export const useDay = () => { const store = useRootStore() const { language } = toRefs(store) - const whichWeek = computed(() => days[language.value][date.value.getDay()]) + const whichWeek = computed(() => days[language.value][date.getDay()]) - return { date, whichWeek } + return { whichWeek } } diff --git a/src/composables/useFindCar.ts b/src/composables/useFindCar.ts index 9756f5f..b5b6d5b 100644 --- a/src/composables/useFindCar.ts +++ b/src/composables/useFindCar.ts @@ -1,4 +1,4 @@ -import { shallowRef } from 'vue' +import { ref, shallowRef } from 'vue' import { getFindCar } from '@/http/api/parking' import { HTTP_CODE } from '@/enums' import { isLicensePlate } from '@/utils/utils'