This commit is contained in:
les
2019-09-11 19:12:24 +02:00
parent 93baf01a55
commit 2fe956d117
65 changed files with 762 additions and 721 deletions

View File

@@ -12,7 +12,7 @@ export default {
components: { List },
data () {
return {
title : ''
title: ''
}
},
async asyncData ({ query, $axios }) {
@@ -22,13 +22,13 @@ export default {
const now = new Date()
let params = []
if (places) params.push(`places=${places}`)
if (tags) params.push(`tags=${tags}`)
if (places) { params.push(`places=${places}`) }
if (tags) { params.push(`tags=${tags}`) }
params = params.length ? `?${params.join('&')}` : ''
const events = await $axios.$get(`/export/json${params}`)
return { events, title }
},
}
}
</script>