fix(board): unwrap API envelope in composables, isolate member profile fetch
This commit is contained in:
parent
f8bc5502ba
commit
4b3ba411dd
3 changed files with 7 additions and 8 deletions
|
|
@ -10,7 +10,7 @@ export function useBoardPosts() {
|
|||
loading.value = true
|
||||
try {
|
||||
const result = await $fetch('/api/board/posts', { params })
|
||||
posts.value = result || []
|
||||
posts.value = result?.posts || []
|
||||
return posts.value
|
||||
} finally {
|
||||
loading.value = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue