mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +01:00
minor
This commit is contained in:
parent
0fca21b7d3
commit
064bf46df7
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ export default {
|
||||||
async asyncData ({ $axios, params, error }) {
|
async asyncData ({ $axios, params, error }) {
|
||||||
try {
|
try {
|
||||||
const collection = params.collection
|
const collection = params.collection
|
||||||
const events = await $axios.$get(`/collections/${collection}`)
|
const events = await $axios.$get(`/collections/${encodeURIComponent(collection)}`)
|
||||||
return { events, collection }
|
return { events, collection }
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
|
|
Loading…
Reference in a new issue