mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-14 16:04:47 +02:00
28 lines
No EOL
604 B
Vue
28 lines
No EOL
604 B
Vue
<template>
|
|
<bookshelf-lazy-bookshelf page="series-books" :series-id="seriesId" />
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
async asyncData({ params, app, store, redirect }) {
|
|
var series = await app.$axios.$get(`/api/series/${params.id}`).catch((error) => {
|
|
console.error('Failed', error)
|
|
return false
|
|
})
|
|
if (!series) {
|
|
return redirect('/oops?message=Series not found')
|
|
}
|
|
store.commit('globals/setSeries', series)
|
|
return {
|
|
series,
|
|
seriesId: params.id
|
|
}
|
|
},
|
|
data() {
|
|
return {}
|
|
},
|
|
computed: {},
|
|
methods: {},
|
|
mounted() {}
|
|
}
|
|
</script> |