mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-26 21:23:02 +00:00
20 lines
320 B
Vue
20 lines
320 B
Vue
<template>
|
|
<div>
|
|
<video controls autoplay :src="vidSrc" width="100%" height="300vh" />
|
|
{{ vidSrc }}
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
vidSrc: ""
|
|
}
|
|
},
|
|
mounted() {
|
|
const { v } = this.$route.query
|
|
console.log(v, this.$youtube.getVid(v))
|
|
}
|
|
}
|
|
</script>
|