diff --git a/src/pages/buchdetailseite/[id].vue b/src/pages/buchdetailseite/[id].vue index 11c0126..b5ad8c0 100644 --- a/src/pages/buchdetailseite/[id].vue +++ b/src/pages/buchdetailseite/[id].vue @@ -1,102 +1,213 @@ +const authorBooks = computed(() => { + if (!book?.authors?.[0]?.name) return [] + return books.filter(b => b.authors?.[0]?.name === book.authors[0].name && b.id !== book.id) +}) - +