Last active
February 18, 2023 15:13
-
-
Save masweb/830908558a32598de04b9a90bb0ee530 to your computer and use it in GitHub Desktop.
Fetch call
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {useFetch} from '@/composables/useFetch' | |
const {data, error} = useFetch('/thegreaturl/' + varr) | |
watch(data, () => { | |
if (data.value.status === 'Success') { | |
} else console.log('fetchError', data.value.message, error.value) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment