mirror of
https://github.com/ArthurDanjou/arthome.git
synced 2026-01-26 17:40:25 +01:00
Working on dnd
This commit is contained in:
@@ -3,13 +3,13 @@ import type { WeatherType } from '~~/types/types'
|
||||
|
||||
const { coords, error } = useGeolocation()
|
||||
|
||||
const { data, status, refresh } = await useAsyncData<WeatherType>(async () => await useRequestFetch<WeatherType>()('/api/weather', {
|
||||
const { data, status, refresh, error: errorFe } = await useAsyncData<WeatherType>(async () => await useRequestFetch<WeatherType>()('/api/weather', {
|
||||
method: 'GET',
|
||||
query: {
|
||||
lon: coords.value.longitude,
|
||||
lat: coords.value.latitude,
|
||||
},
|
||||
}))
|
||||
}), { lazy: true, immediate: false })
|
||||
|
||||
watchOnce(coords, async () => await refresh())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user