|
@@ -17,11 +17,11 @@ export default {
|
|
|
name: "app",
|
|
|
async created() {
|
|
|
try {
|
|
|
- const Authorization = this.getQueryVariable('Authorization')
|
|
|
- console.log(decodeURI(Authorization))
|
|
|
+ let Authorization = this.getQueryVariable('Authorization')
|
|
|
+ Authorization = Authorization ? Authorization.split('+')[1] : null
|
|
|
if (Authorization) {
|
|
|
- localStorage.setItem("Authorization", decodeURI(Authorization));
|
|
|
- localStorage.setItem("userInfo", decodeURI(Authorization));
|
|
|
+ localStorage.setItem("Authorization", ('bearer ' + Authorization));
|
|
|
+ localStorage.setItem("userInfo", ('bearer ' + Authorization));
|
|
|
}
|
|
|
const auth = localStorage.getItem("Authorization");
|
|
|
const userInfo = localStorage.getItem("userInfo");
|