N
Nuxt2mo ago
kora

Problem with nuxt img

2 Replies
kora
koraOP2mo ago
kora
koraOP2mo ago
const route = useRoute();

let project = ref(null)
let slug = ref(route.params.projectSlug)
const {data, status, error, refresh} = await useFetch('/api/projects', {
method: 'POST',
body: {
slug: slug
}
});

if (status.value === 'success') {
project.value = data.value;
}
const route = useRoute();

let project = ref(null)
let slug = ref(route.params.projectSlug)
const {data, status, error, refresh} = await useFetch('/api/projects', {
method: 'POST',
body: {
slug: slug
}
});

if (status.value === 'success') {
project.value = data.value;
}
Want results from more Discord servers?
Add your server