feat: There is no way the, weblink 免登陆
This commit is contained in:
@@ -114,7 +114,15 @@
|
|||||||
"Content-Type": "application/json",
|
"Content-Type": "application/json",
|
||||||
},
|
},
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if(res.code){
|
if(res.data){
|
||||||
|
axios.request({
|
||||||
|
url: 'https://iftappwelink.foton.com.cn/devserver/welink/getUserInfoByAuthCode?code='+code,
|
||||||
|
method: 'post',
|
||||||
|
headers: {
|
||||||
|
"Content-Type": "application/json",
|
||||||
|
},
|
||||||
|
}).then(res => {
|
||||||
|
if(res.data){
|
||||||
let userName = res.data.access_token;
|
let userName = res.data.access_token;
|
||||||
if(userName !== undefined && userName !== ""){
|
if(userName !== undefined && userName !== ""){
|
||||||
checkPageNoEncryption({
|
checkPageNoEncryption({
|
||||||
@@ -133,6 +141,10 @@
|
|||||||
}else {
|
}else {
|
||||||
// window.location.href = ssoLogoutUrlDev
|
// window.location.href = ssoLogoutUrlDev
|
||||||
}
|
}
|
||||||
|
}else {
|
||||||
|
this.logout()
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user