Commit b712b8d9 authored by 黄媛媛's avatar 黄媛媛

11

parent 69470d50
...@@ -37,15 +37,15 @@ export default { ...@@ -37,15 +37,15 @@ export default {
} }
}, },
created(){ created(){
let href = window.location.href; // let href = window.location.href;
let param = href.split('?')[1].split("&") ; // let param = href.split('?')[1].split("&") ;
if(param){ // if(param){
let obj={}; // let obj={};
obj.token=param[0].split('=')[1]; // obj.token=param[0].split('=')[1];
obj.SecretKey=param[1].split('=')[1]; // obj.SecretKey=param[1].split('=')[1];
localStorage.zcuserInfo = JSON.stringify(obj); // localStorage.zcuserInfo = JSON.stringify(obj);
this.getUserInfo(); // this.getUserInfo();
} // }
}, },
mounted(){ mounted(){
this.initData(); this.initData();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment