|
|
|
|
@ -38,8 +38,8 @@ export default { |
|
|
|
|
}else{ |
|
|
|
|
this.loading = true; |
|
|
|
|
this.$store |
|
|
|
|
.dispatch("LoginBySso", {SSOToken: ssotoken,grantType:'yawei'}) |
|
|
|
|
.then((res) => { |
|
|
|
|
.dispatch("LoginBySso", {SSOToken: ssotoken,grantType:'yawei',fallbackUrl: ssotoken ? '' : window.location.href}) |
|
|
|
|
.then(() => { |
|
|
|
|
this.loading = false; |
|
|
|
|
console.log('=============登录成功') |
|
|
|
|
this.$router.replace({ path: this.tagWel.value }); |
|
|
|
|
@ -47,8 +47,9 @@ export default { |
|
|
|
|
this.loading = false; |
|
|
|
|
console.log('err=======res',err) |
|
|
|
|
if(err.error == 'invalid_request') { |
|
|
|
|
let url = err.error_description+'?SSOToken=' + encodeURIComponent(window.location); |
|
|
|
|
window.location.href = url;//重定向 |
|
|
|
|
// let url = err.error_description+'?SSOToken=' + encodeURIComponent(window.location); |
|
|
|
|
window.location.href = err.error_description;//重定向 |
|
|
|
|
// window.location.href = 'http://jhoa.qd.gov.cn/Keeper.aspx?SSOToken=PSOSite%24TjZXxbcic5BDwCphjqib%2BVEWXFe1JX5N1VBWsX%2FNAapJ5MHEKOyR0Jf24C09C1NdofaFCYjfNvA%3D'; |
|
|
|
|
}else if(err.error == 'invalid_grant') { |
|
|
|
|
this.$confirm(err.error_description, '提示', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
|