From cfce577132832b5291c5bd3b171d7f4397d44643 Mon Sep 17 00:00:00 2001 From: 819527061@qq.com <123456> Date: 星期二, 14 五月 2024 17:06:53 +0800 Subject: [PATCH] docs:参数加密 --- src/views/home/home.vue | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/home/home.vue b/src/views/home/home.vue index 5b0f3d3..bbe5f84 100644 --- a/src/views/home/home.vue +++ b/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}`; //姝e紡 // 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(); // // 閫氱煡 -- Gitblit v1.9.1