break resources in multiple json files & add to vuex module store

This commit is contained in:
Kevin Van Der Werff
2019-06-22 03:28:33 +02:00
parent 23416bccd2
commit f1a8d056d7
19 changed files with 1039 additions and 1012 deletions

View File

@@ -7,8 +7,6 @@
</template>
<script>
import store from '../store.json'
export default {
data() {
return {
@@ -16,7 +14,7 @@ export default {
}
},
created() {
this.categories = store.map(({ title, slug }) => ({ title, slug }))
this.categories = this.$store.state.resources.map(({ title, slug }) => ({ title, slug }))
}
}
</script>