提交 f71e8f6d 编写于 作者: tao.wu's avatar tao.wu

调试未登录的bug

上级 fcb97fd7
......@@ -112,7 +112,7 @@ export default {
.getUserInfo()
.then(params => {
_seft.userToken = params.userToken;
alert('__refresh=='+_seft.userToken)
// alert('__refresh=='+_seft.userToken)
});
}
this.shareObj = {
......@@ -126,7 +126,7 @@ export default {
this.$rocNative.getToken().then(res => {
const { userToken } = res;
this.userToken = userToken;
alert('monutd gettoken' + this.userToken)
// alert('monutd gettoken' + this.userToken)
getRemindStatus(userToken).then(res => {
if(res.code=='000000'){
this.isLogin = true;
......@@ -231,8 +231,9 @@ export default {
}
// this.$rocNative.getToken().then(data => {
// const { userToken } = data;
alert('setRemind===>' + this.userToken)
// alert('setRemind===>' + this.userToken)
checkToken(this.userToken).then(res=>{
// alert(JSON.stringify(res))
if(res.code=='200006' || res.code == '200000'){
this.$rocNative.gotoLogin();
}else{
......
......@@ -45,5 +45,9 @@ export const getRemindStatus = async (token) => {
export const checkToken = async(token) => {
return request({
url: `campaign/admin/task/checkToken?token=${token}`,
method: 'get',
headers: {
token: token
}
})
}
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册