提交 65ee08e1 编写于 作者: KK's avatar KK

调试

上级 5829ccd5
...@@ -106,11 +106,11 @@ export class DingTalkService { ...@@ -106,11 +106,11 @@ export class DingTalkService {
*/ */
private async dd_ready() { private async dd_ready() {
// 设置导航标题 // 设置导航标题
let { issuccess } = await this.login(); // let { issuccess } = await this.login();
this.setNavBack(); this.setNavBack();
if(issuccess){ // if(issuccess){
this.doAuthentication();
} // }
} }
...@@ -150,6 +150,7 @@ export class DingTalkService { ...@@ -150,6 +150,7 @@ export class DingTalkService {
if (userInfo.status == 200 && userInfo.data.token && userInfo.data.user) { if (userInfo.status == 200 && userInfo.data.token && userInfo.data.user) {
localStorage.setItem("token", userInfo.data.token); localStorage.setItem("token", userInfo.data.token);
localStorage.setItem("user", JSON.stringify(userInfo.data.user)); localStorage.setItem("user", JSON.stringify(userInfo.data.user));
this.doAuthentication();
return { issuccess: true, message: "" }; return { issuccess: true, message: "" };
} else if (userInfo.status == 400) { } else if (userInfo.status == 400) {
return { issuccess: false, message: userInfo.data.message }; return { issuccess: false, message: userInfo.data.message };
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册