mirror of
https://codeberg.org/SafeTwitch/safetwitch.git
synced 2024-12-22 05:12:57 -05:00
fix clip support
This commit is contained in:
parent
170bfd187c
commit
2a1b326f94
2 changed files with 7 additions and 2 deletions
|
@ -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 }
|
||||
|
|
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue