Fix video routes generating error

This commit is contained in:
Sam Carlton 2020-12-26 12:59:39 -06:00
parent 5bf72f1d0a
commit fa222d3116
5 changed files with 49 additions and 6 deletions

View file

@ -2,7 +2,7 @@
<div class="video-card">
<a
:href="video.endpoint"
:href="videoEndpoint"
class=""
>
<div class="video-card-container relative overflow-hidden bg-black">
@ -47,6 +47,8 @@
<script>
import { getVideoEndpoint } from '~/helpers/app-derived.js'
export default {
props: {
video: {
@ -74,7 +76,13 @@ export default {
// console.log('thumbnail', thumbnail)
return `${thumbnail.url} ${thumbnail.width}w`
}).join(', ')
},
videoEndpoint () {
return getVideoEndpoint(this.video)
}
},
methods: {
getVideoEndpoint
}
}