minor
This commit is contained in:
parent
7a3c3fd5cd
commit
7fe1c0c75e
1 changed files with 7 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
<template lang="pug">
|
||||
nuxt-link.event(:to='`event/${event.id}${event.recurrent && "_" + event.start_datetime/1000}`' :class='{ withImg: event.image_path }')
|
||||
nuxt-link.event(:to='`event/${link}`' :class='{ withImg: event.image_path }')
|
||||
//- image
|
||||
img(v-if='showImage && event.image_path' :src='`/media/thumb/${event.image_path}`')
|
||||
|
||||
|
@ -49,6 +49,12 @@ export default {
|
|||
computed: {
|
||||
date () {
|
||||
return new Date(this.event.start_datetime).getDate()
|
||||
},
|
||||
link () {
|
||||
if (this.event.recurrent) {
|
||||
return `${this.event.id}_${this.event.start_datetime/1000}`
|
||||
}
|
||||
return this.event.id
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue