mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-11-08 00:54:33 +01:00
41 lines
904 B
Vue
41 lines
904 B
Vue
<template>
|
|
<div class="page" :class="streamAudiobook ? 'streaming' : ''">
|
|
<!-- <app-book-shelf-toolbar /> -->
|
|
<!-- <div class="flex h-full">
|
|
<app-side-rail />
|
|
<div class="flex-grow"> -->
|
|
<!-- <app-book-shelf /> -->
|
|
<!-- </div> -->
|
|
<!-- </div> -->
|
|
|
|
<div class="flex h-full">
|
|
<app-side-rail />
|
|
<div class="flex-grow">
|
|
<app-book-shelf-toolbar is-home />
|
|
<app-book-shelf-categorized />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
asyncData({ redirect, store }) {
|
|
var currentLibraryId = store.state.libraries.currentLibraryId
|
|
console.log('Redir', currentLibraryId)
|
|
redirect(`/library/${currentLibraryId}`)
|
|
},
|
|
data() {
|
|
return {}
|
|
},
|
|
computed: {
|
|
streamAudiobook() {
|
|
return this.$store.state.streamAudiobook
|
|
}
|
|
},
|
|
methods: {},
|
|
mounted() {},
|
|
beforeDestroy() {}
|
|
}
|
|
</script>
|