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

打点日志

上级 a35e9deb
......@@ -231,15 +231,15 @@ module.exports = {
// 校验token,有效则调用回调函数,否则调起原生登陆页面
commonCheckToken(cb) {
let param = {
// token: this.token,
token: this.token || this.$store.state.user.token || this.$store.state.coop.userInfo.userToken,
setEntry: true
};
console.log('this.token || this.$store.state.user.token || this.$store.state.coop.userInfo.userToken', this.token, this.$store.state.user.token, this.$store.state.coop.userInfo.userToken);
this.GET("campaign/admin/task/checkToken", param).then(res => {
if (res.code !== "000000") {
console.log('window.__isWeb', window.__isWeb);
console.log('commonCheckToken', window.__isWeb);
if(window.__isWeb) {
this.goLogin();
// this.goLogin();
} else {
rocNative.gotoLogin();
}
......
......@@ -98,10 +98,12 @@ export default {
this.token = token;
console.log("token && !info.id", !info.id, "wef", token);
if (!token) {
this.goLogin();
console.log('this.goLogin()');
// this.goLogin();
return;
}
if (token && !info.id) {
console.log('token && !info.id', token, info.id);
this.commonCheckToken(() => {
this.$store.dispatch("getUserInfo");
});
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册