Browse Source

fix: 🧩 修复若干bug

pull/1/head
jiangx 3 years ago
parent
commit
1adfd6cc11
  1. 4
      src/composables/useDay.ts
  2. 2
      src/composables/useFindCar.ts

4
src/composables/useDay.ts

@ -12,7 +12,7 @@ export const useDay = () => {
const store = useRootStore() const store = useRootStore()
const { language } = toRefs(store) 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 }
} }

2
src/composables/useFindCar.ts

@ -1,4 +1,4 @@
import { shallowRef } from 'vue'
import { ref, shallowRef } from 'vue'
import { getFindCar } from '@/http/api/parking' import { getFindCar } from '@/http/api/parking'
import { HTTP_CODE } from '@/enums' import { HTTP_CODE } from '@/enums'
import { isLicensePlate } from '@/utils/utils' import { isLicensePlate } from '@/utils/utils'

Loading…
Cancel
Save