mirror of
https://framagit.org/les/gancio.git
synced 2025-02-01 00:52:01 +01:00
mv _id to _slug
This commit is contained in:
parent
49982ceb1d
commit
16762d9978
1 changed files with 2 additions and 2 deletions
|
@ -143,8 +143,8 @@ export default {
|
||||||
components: { EventAdmin, EmbedEvent },
|
components: { EventAdmin, EmbedEvent },
|
||||||
async asyncData ({ $axios, params, error, store }) {
|
async asyncData ({ $axios, params, error, store }) {
|
||||||
try {
|
try {
|
||||||
const event = await $axios.$get(`/event/${params.id}`)
|
const event = await $axios.$get(`/event/${params.slug}`)
|
||||||
return { event, id: Number(params.id) }
|
return { event }
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
error({ statusCode: 404, message: 'Event not found' })
|
error({ statusCode: 404, message: 'Event not found' })
|
||||||
}
|
}
|
Loading…
Reference in a new issue