819527061@qq.com
2024-05-14 cfce577132832b5291c5bd3b171d7f4397d44643
docs:参数加密
1个文件已修改
11 ■■■■■ 已修改文件
src/views/home/home.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/home.vue
@@ -566,12 +566,15 @@
    }
  },
  mounted() {
    let token = this.getSessionStore('accessToken')
    this.token = `https://111.63.178.115:9093?token=${token}`;
    let token = encodeURIComponent(this.getSessionStore('accessToken'))
    console.log(token,'token===pc端的token')
    let encodedParam = window.btoa(token)
    this.token = `https://111.63.178.115:9093?token=${encodedParam}`;  //正式
    // this.token = `http://localhost:63343/dp/index.html?token=$vj$xCShfaQRUQlF8lqL1lwWi2auOrkLfkoecRuDWiJXlTnSg1mh6BODfjieo3ncsosjiocew?token1=${token}`;
    //this.token = `http://127.0.0.1:8848/dp/index.html?token=${token}`;
    // console.log(encodedParam,'encodedParam----加密---')
    // this.token = `http://127.0.0.1:8848/dp/index.html?token=${encodedParam}`;  //本地
    //alert(this.toCode('管理员'))
    //this.token = 'http://localhost:8080?token='+this.toCode('管理员');
    // this.token = 'http://localhost:8080?token='+this.toCode('管理员');
    //this.token = 'http://localhost:8080?token=$vj$xCShfaQRUQlF8lqL1lwWi2auOrkLfkoecRuDWiJXlTnSg1mh6BODfjieo3ncsosjiocew';
    // this.init();
    // // 通知