No need for computer property
This commit is contained in:
@@ -12,12 +12,7 @@ import Card from '../components/Card'
|
|||||||
export default {
|
export default {
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
categoryRouteTitle: this.$route.params.category,
|
category: this.$store.getters['resources/findResources'](this.$route.params.category),
|
||||||
}
|
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
category() {
|
|
||||||
return this.$store.getters['resources/findResources'](this.categoryRouteTitle)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
components: { Card },
|
components: { Card },
|
||||||
|
|||||||
Reference in New Issue
Block a user