mirror of
https://framagit.org/les/gancio.git
synced 2025-01-31 16:42:22 +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 },
|
||||
async asyncData ({ $axios, params, error, store }) {
|
||||
try {
|
||||
const event = await $axios.$get(`/event/${params.id}`)
|
||||
return { event, id: Number(params.id) }
|
||||
const event = await $axios.$get(`/event/${params.slug}`)
|
||||
return { event }
|
||||
} catch (e) {
|
||||
error({ statusCode: 404, message: 'Event not found' })
|
||||
}
|
Loading…
Reference in a new issue