mirror of
https://github.com/TeamPiped/Piped.git
synced 2024-12-16 23:30:27 +05:30
17 lines
469 B
Vue
17 lines
469 B
Vue
|
<template>
|
||
|
<ErrorHandler v-if="response && response.error" :message="response.message" :error="response.error" />
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
activated() {
|
||
|
this.fetchJson(this.apiUrl() + "/clips/" + this.$route.params.clipId).then(response => {
|
||
|
this.response = response;
|
||
|
if (this.response.videoId) {
|
||
|
this.$router.push(`/watch?v=${this.response.videoId}`);
|
||
|
}
|
||
|
});
|
||
|
},
|
||
|
};
|
||
|
</script>
|