|
@@ -24,6 +24,7 @@ export default {
|
|
|
const token=localStorage.getItem('token');//获取token
|
|
const token=localStorage.getItem('token');//获取token
|
|
|
console.log("打印获取的token",token);
|
|
console.log("打印获取的token",token);
|
|
|
setToken(token);
|
|
setToken(token);
|
|
|
|
|
+ alert(token);
|
|
|
this.$store.dispatch('user/getUserInfoByToken').then(user => {
|
|
this.$store.dispatch('user/getUserInfoByToken').then(user => {
|
|
|
|
|
|
|
|
|
|
|