fix clip support
This commit is contained in:
parent
170bfd187c
commit
2a1b326f94
@ -46,7 +46,12 @@ const router = createRouter({
|
|||||||
component: VodView
|
component: VodView
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/:streamer/clip/:slug',
|
path: '/clip/:slug',
|
||||||
|
component: ClipView
|
||||||
|
},
|
||||||
|
// suppotrt other clip method
|
||||||
|
{
|
||||||
|
path: '/:streamerName/clip/:slug',
|
||||||
component: ClipView
|
component: ClipView
|
||||||
},
|
},
|
||||||
{ path: '/:pathMatch(.*)*', component: PageNotFound }
|
{ path: '/:pathMatch(.*)*', component: PageNotFound }
|
||||||
|
@ -56,7 +56,7 @@ export default {
|
|||||||
const clipSlug = this.$route.params.slug
|
const clipSlug = this.$route.params.slug
|
||||||
const streamerName = this.$route.params.streamer
|
const streamerName = this.$route.params.streamer
|
||||||
|
|
||||||
await getEndpoint(`api/clips/${streamerName}/${clipSlug}`)
|
await getEndpoint(`api/clips/${clipSlug}`)
|
||||||
.then((data) => {
|
.then((data) => {
|
||||||
this.data = data
|
this.data = data
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user