4
2
Fork 0

Change Verse component to get Verses from getters

This commit is contained in:
Erastus Amunwe 2020-11-03 21:05:21 +02:00
parent 72f161d6c6
commit 44dfa73045
1 changed files with 2 additions and 9 deletions

View File

@ -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>