Skip to content

Commit 6a9840e

Browse files
committed
fix(project): fetch file with path as param
1 parent 0a27d64 commit 6a9840e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pages/@[team]/[project]/content.vue

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,7 @@ watch(file, async () => {
6969
return
7070
}
7171
72-
const { content: fetchedContent } = await client(`/projects/${props.project.id}/file`, {
73-
params: {
74-
path: file.value.path
75-
}
76-
})
72+
const { content: fetchedContent } = await client(`/projects/${props.project.id}/files/${encodeURIComponent(file.value.path)}`)
7773
7874
content.value = fetchedContent
7975
}, { immediate: true })

0 commit comments

Comments
 (0)