|
|
|
|
@ -47,22 +47,26 @@ export default { |
|
|
|
|
this.loading = false; |
|
|
|
|
console.log('err=======res',err) |
|
|
|
|
if(err.error == 'invalid_request') { |
|
|
|
|
window.location.href = err.error_description+'?strToken=' + encodeURI(window.location);//重定向 |
|
|
|
|
let url = err.error_description+'?retUrl=' + encodeURIComponent(window.location); |
|
|
|
|
alert('重定向='+url) |
|
|
|
|
window.location.href = url;//重定向 |
|
|
|
|
}else if(err.error == 'invalid_grant') { |
|
|
|
|
this.$confirm(err.error_description, '提示', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
showClose: false, |
|
|
|
|
showCancelButton: false, |
|
|
|
|
type: 'warning' |
|
|
|
|
type: 'warning', |
|
|
|
|
closeOnClickModal: false |
|
|
|
|
}).then(() => { |
|
|
|
|
this.$router.replace({ path: '/newlogin' }); |
|
|
|
|
}) |
|
|
|
|
}else { |
|
|
|
|
this.$confirm(err.error_description, '提示', { |
|
|
|
|
this.$confirm(err.error_description || '登录失败', '提示', { |
|
|
|
|
confirmButtonText: '确定', |
|
|
|
|
showClose: false, |
|
|
|
|
showCancelButton: false, |
|
|
|
|
type: 'warning' |
|
|
|
|
type: 'warning', |
|
|
|
|
closeOnClickModal: false |
|
|
|
|
}).then(() => { |
|
|
|
|
this.$router.replace({ path: '/newlogin' }); |
|
|
|
|
}) |
|
|
|
|
|