diff --git a/components/explorer/PreviewContent.vue b/components/explorer/PreviewContent.vue index cd386ac..4d782d8 100644 --- a/components/explorer/PreviewContent.vue +++ b/components/explorer/PreviewContent.vue @@ -54,9 +54,9 @@ async function fetch() fetched.value = true; pending.value = true; - const { data } = await useFetch(`/api/project/${props.project}/file/${encodeURIComponent(props.path)}`); + const data = await $fetch(`/api/project/${props.project}/file/${encodeURIComponent(props.path)}`); pending.value = false; - file.value = data.value; + file.value = data; } \ No newline at end of file diff --git a/components/prose/ProseA.vue b/components/prose/ProseA.vue index 26c7500..1d43ae5 100644 --- a/components/prose/ProseA.vue +++ b/components/prose/ProseA.vue @@ -48,6 +48,7 @@ const { data, status, execute } = await useFetch(`/api/project/${project.value}/ key: key.value, ignoreResponseError: true, immediate: false, + server: false, dedupe: 'defer' }); diff --git a/components/prose/ProseTag.vue b/components/prose/ProseTag.vue index 2f55fb9..274760c 100644 --- a/components/prose/ProseTag.vue +++ b/components/prose/ProseTag.vue @@ -1,8 +1,8 @@