N
Nuxt3mo ago
kora

Problem with nuxt img

2 Replies
kora
koraOP3mo ago
kora
koraOP3mo 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