From 1adfd6cc11b19e96d1bd118f4ac8729aa1210227 Mon Sep 17 00:00:00 2001 From: jiangx <1457960500@qq.com> Date: Mon, 19 Jun 2023 17:25:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=A7=A9=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E8=8B=A5=E5=B9=B2bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/composables/useDay.ts | 4 ++-- src/composables/useFindCar.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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'