fix clip support
Some checks failed
ci/woodpecker/tag/woodpecker Pipeline failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
dragongoose 2023-10-17 22:00:03 -04:00
parent 170bfd187c
commit 2a1b326f94
No known key found for this signature in database
GPG key ID: 01397EEC371CDAA5
2 changed files with 7 additions and 2 deletions

View file

@ -46,7 +46,12 @@ const router = createRouter({
component: VodView
},
{
path: '/:streamer/clip/:slug',
path: '/clip/:slug',
component: ClipView
},
// suppotrt other clip method
{
path: '/:streamerName/clip/:slug',
component: ClipView
},
{ path: '/:pathMatch(.*)*', component: PageNotFound }

View file

@ -56,7 +56,7 @@ export default {
const clipSlug = this.$route.params.slug
const streamerName = this.$route.params.streamer
await getEndpoint(`api/clips/${streamerName}/${clipSlug}`)
await getEndpoint(`api/clips/${clipSlug}`)
.then((data) => {
this.data = data
})