<template>
<div>
    video
</div>
</template>

<script>
import JSEncrypt from 'jsencrypt';  
export default {
  name: '',
  components: {},
    props: [],
  data () {
    return {
      decrypt:null,
      link:"",
      privateKey:"hdisadnihcuxhzcjxhidhsadahdoihasdnxjhuchasjdhandkjnasidhsadsadasklmcxasnsjdoasdjaosijkxoajsidjsaodkasj"
    }
  },
  created () {
    this.init();
   },
  methods: { 
    init(){
      this.decrypt = new JSEncrypt(); 
      this.decrypt.setPrivateKey(this.privateKey); // 设置私钥  
      this.link = this.decryptMessage(this.$route.params.id)
      this.link = this.$route.params.id;
      console.log(this.init)
    },
    decryptMessage(text) {  
      return this.decrypt.decrypt(text); // 解密消息  
    }, 
  },
  computed: {}
}
</script>
<style scoped lang='scss'>

</style>
