diff --git a/front/src/AppNavBar.vue b/front/src/AppNavBar.vue index dfaf0b1..296549d 100644 --- a/front/src/AppNavBar.vue +++ b/front/src/AppNavBar.vue @@ -1,8 +1,7 @@ - - + + diff --git a/front/src/BookListElement.vue b/front/src/BookListElement.vue index 987d37f..c0d3fd9 100644 --- a/front/src/BookListElement.vue +++ b/front/src/BookListElement.vue @@ -6,6 +6,7 @@ const router = useRouter(); const props = defineProps({ + id: Number, title: String, author: String, id: Number, @@ -23,6 +24,10 @@ async function onUserBookRead() { } } +function openBook() { + router.push(`/book/${props.id}`) +} + @@ -30,7 +35,7 @@ async function onUserBookRead() { {{error}} - +
{{error}}