提交 ab96a32e 编写于 作者: guangjun.yang's avatar guangjun.yang

如果有token,但没有用户信息,则获取用户信息

上级 37712d95
...@@ -367,16 +367,12 @@ export default { ...@@ -367,16 +367,12 @@ export default {
this.from = this.$route.query.from || this.from || "native"; this.from = this.$route.query.from || this.from || "native";
this.uuid = this.$route.query.uuid || '07F9625472D6444EBAE4BF7D2EF83BC4'; this.uuid = this.$route.query.uuid || '07F9625472D6444EBAE4BF7D2EF83BC4';
const { token, info } = this.$store.state.user; const { token, info } = this.$store.state.user;
// 如果有token,但没有用户信息,则获取用户信息
if (token && !info.id) { if (token && !info.id) {
this.$store.dispatch('getUserInfo'); this.$store.dispatch('getUserInfo');
} }
this.queryByUuid(this.uuid); this.queryByUuid(this.uuid);
// 打开页面埋点
// this.$sendBuriedData({
// component_tag: `211#0#${this.projectId}#0`
// });
// 调用广告位接口 // 调用广告位接口
this.getAdvertInfoList(); this.getAdvertInfoList();
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册