videoplay.vue 948 字节
<template>
  <div class="container">
    <div class="videobox">
      <video
        id="video"
        :src="url"
        loop="loop"
        controlslist="nodownload"
        height="100%"
        width="100%"
        controls
        autoplay
      ></video>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      url: ""
    };
  },
  created() {
    this.url = this.$route.query.url;
    document.querySelector("body").style.height = "100%";
    document.querySelector("html").style.height = "100%";
    document.querySelector("#app").style.height = "100%";
    console.log(343)
    // var vdo = document.getElementById("video");
    // vdo.play();
    document.title = "中国面条"; //TODO: 我的时空网开

    console.log(this.url);
  
  },
  methods: {}
};
</script>

<style scoped>
#app {
  height: 100%;
}
.container,
.videobox {
  width: 100%;
  height: 100%;
  /* margin-top: 1rem; */
}
</style>