1
0
mirror of https://github.com/advplyr/audiobookshelf.git synced 2025-01-08 00:08:14 +01:00
audiobookshelf/client/pages/index.vue

26 lines
533 B
Vue

<template>
<div class="page" :class="streamLibraryItem ? 'streaming' : ''"></div>
</template>
<script>
export default {
asyncData({ redirect, store }) {
if (!store.state.libraries.currentLibraryId) {
return redirect('/oops?message=No libraries')
}
redirect(`/library/${store.state.libraries.currentLibraryId}`)
},
data() {
return {}
},
computed: {
streamLibraryItem() {
return this.$store.state.streamLibraryItem
}
},
methods: {},
mounted() {},
beforeDestroy() {}
}
</script>