video.vue 823 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <div>
  3. video
  4. </div>
  5. </template>
  6. <script>
  7. import JSEncrypt from 'jsencrypt';
  8. export default {
  9. name: '',
  10. components: {},
  11. props: [],
  12. data () {
  13. return {
  14. decrypt:null,
  15. link:"",
  16. privateKey:"hdisadnihcuxhzcjxhidhsadahdoihasdnxjhuchasjdhandkjnasidhsadsadasklmcxasnsjdoasdjaosijkxoajsidjsaodkasj"
  17. }
  18. },
  19. created () {
  20. this.init();
  21. },
  22. methods: {
  23. init(){
  24. this.decrypt = new JSEncrypt();
  25. this.decrypt.setPrivateKey(this.privateKey); // 设置私钥
  26. this.link = this.decryptMessage(this.$route.params.id)
  27. this.link = this.$route.params.id;
  28. console.log(this.init)
  29. },
  30. decryptMessage(text) {
  31. return this.decrypt.decrypt(text); // 解密消息
  32. },
  33. },
  34. computed: {}
  35. }
  36. </script>
  37. <style scoped lang='scss'>
  38. </style>