computed: {
// eslint-disable-next-line vue/return-in-computed-property
requests (){
this.$store.getters.requests.filter(request => {
if (this.$route.query.data) {
return this.$route.query.data === request.color
}
return request
})
.sort((a,b) => {
return a.id - b.id
})
}
},
async mounted() {
await this.$store.dispatch('getGallery')
},