二次确认弹框遮罩层点击事件取消

main
xuechunyuan 3 years ago
parent dc815180c1
commit 551d871b02
  1. 12
      src/page/login/index.vue

@ -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' });
})

Loading…
Cancel
Save