Piped/src/components/VideoRedirect.vue

18 lines
307 B
Vue
Raw Normal View History

<template>
<div>Loading...</div>
</template>
<script>
export default {
activated() {
const videoId = this.$route.params.videoId;
if (videoId)
this.$router.push({
path: "/watch",
query: { v: videoId },
});
},
};
</script>