mirror of
https://github.com/getbible/app.git
synced 2024-12-22 07:48:55 +00:00
Change Verse component to get Verses from getters
This commit is contained in:
parent
72f161d6c6
commit
44dfa73045
@ -16,6 +16,7 @@
|
||||
</ul>
|
||||
</template>
|
||||
<script>
|
||||
import {mapGetters} from 'vuex';
|
||||
export default {
|
||||
data: () => {
|
||||
return {
|
||||
@ -25,15 +26,7 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
verses(){
|
||||
return this.$store.getters.verses;
|
||||
},
|
||||
dir(){
|
||||
return this.$store.getters.dir;
|
||||
},
|
||||
book_name(){
|
||||
return this.$store.getters.book_name;
|
||||
}
|
||||
...mapGetters(['verses', 'dir', 'book_name'])
|
||||
}
|
||||
}
|
||||
</script>
|
Loading…
Reference in New Issue
Block a user