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

11

parent 69470d50
......@@ -37,15 +37,15 @@ export default {
}
},
created(){
let href = window.location.href;
let param = href.split('?')[1].split("&") ;
if(param){
let obj={};
obj.token=param[0].split('=')[1];
obj.SecretKey=param[1].split('=')[1];
localStorage.zcuserInfo = JSON.stringify(obj);
this.getUserInfo();
}
// let href = window.location.href;
// let param = href.split('?')[1].split("&") ;
// if(param){
// let obj={};
// obj.token=param[0].split('=')[1];
// obj.SecretKey=param[1].split('=')[1];
// localStorage.zcuserInfo = JSON.stringify(obj);
// this.getUserInfo();
// }
},
mounted(){
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