Commit bce86fd2 authored by 张冬's avatar 张冬

token

parent 1b1bec90
...@@ -160,6 +160,10 @@ export default { ...@@ -160,6 +160,10 @@ export default {
}; };
}, },
created() { created() {
let token = getSearchString('token');
if (token !== 'undefined') {
localStorage.setItem('token', token);
}
this.gethome(); this.gethome();
}, },
methods: { methods: {
......
...@@ -202,6 +202,10 @@ export default { ...@@ -202,6 +202,10 @@ export default {
} }
}, },
created() { created() {
let token = getSearchString('token');
if (token !== 'undefined') {
localStorage.setItem('token', token);
}
this.gethome(); this.gethome();
} }
}; };
......
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