audiobookshelf/client/pages/index.vue

26 lines
533 B
Vue
Raw Normal View History

2021-08-18 00:01:11 +02:00
<template>
<div class="page" :class="streamLibraryItem ? 'streaming' : ''"></div>
2021-08-18 00:01:11 +02:00
</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 {}
},
2021-08-18 00:01:11 +02:00
computed: {
streamLibraryItem() {
return this.$store.state.streamLibraryItem
2021-08-18 00:01:11 +02:00
}
},
methods: {},
mounted() {},
beforeDestroy() {}
}
</script>