mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-11-09 01:24:26 +01:00
26 lines
533 B
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>
|