minor
This commit is contained in:
parent
bb2d9905c7
commit
d536499a08
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ export default {
|
||||||
async asyncData ({ $axios, params, error }) {
|
async asyncData ({ $axios, params, error }) {
|
||||||
try {
|
try {
|
||||||
const tag = params.tag
|
const tag = params.tag
|
||||||
const events = await $axios.$get(`/tag/${tag}`)
|
const events = await $axios.$get(`/tag/${encodeURIComponent(tag)}`)
|
||||||
return { events, tag }
|
return { events, tag }
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
error({ statusCode: 400, message: 'Error!' })
|
error({ statusCode: 400, message: 'Error!' })
|
||||||
|
|
Loading…
Reference in a new issue