audiobookshelf/client/pages/index.vue

31 lines
644 B
Vue
Raw Normal View History

2021-08-18 00:01:11 +02:00
<template>
<div class="page" :class="streamAudiobook ? 'streaming' : ''">
<!-- <div class="flex h-full">
<app-side-rail class="hidden md:block" />
2021-09-28 13:44:40 +02:00
<div class="flex-grow">
<app-book-shelf-toolbar is-home />
<app-book-shelf-categorized />
</div>
</div> -->
2021-08-18 00:01:11 +02:00
</div>
</template>
<script>
export default {
asyncData({ redirect, store }) {
redirect(`/library/${store.state.libraries.currentLibraryId}`)
},
data() {
return {}
},
2021-08-18 00:01:11 +02:00
computed: {
streamAudiobook() {
return this.$store.state.streamAudiobook
}
},
methods: {},
mounted() {},
beforeDestroy() {}
}
</script>