|
|
@ -78,8 +78,8 @@ export default { |
|
|
footerContent: defaultSettings.footerContent, |
|
|
footerContent: defaultSettings.footerContent, |
|
|
codeUrl: "", |
|
|
codeUrl: "", |
|
|
loginForm: { |
|
|
loginForm: { |
|
|
username: "admin", |
|
|
|
|
|
password: "admin123", |
|
|
|
|
|
|
|
|
username: "", |
|
|
|
|
|
password: "", |
|
|
rememberMe: false, |
|
|
rememberMe: false, |
|
|
code: "", |
|
|
code: "", |
|
|
uuid: "", |
|
|
uuid: "", |
|
|
@ -152,9 +152,23 @@ export default { |
|
|
this.$router.push({ path: this.redirect || "/" }).catch(()=>{}); |
|
|
this.$router.push({ path: this.redirect || "/" }).catch(()=>{}); |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
if(err && err.message==='exists'){ |
|
|
if(err && err.message==='exists'){ |
|
|
|
|
|
|
|
|
|
|
|
this.$confirm(this.$t('system.crowdOut'), this.$t('system.tip'), { |
|
|
|
|
|
confirmButtonText: this.$t('form.confirm'), |
|
|
|
|
|
cancelButtonText: this.$t('form.cancel'), |
|
|
|
|
|
type: 'warning' |
|
|
|
|
|
}).then(() => { |
|
|
|
|
|
this.loginForm.force = true |
|
|
|
|
|
this.handleLogin() |
|
|
|
|
|
}).catch(() => { |
|
|
|
|
|
this.loading = false; |
|
|
|
|
|
this.loginForm.force = false |
|
|
|
|
|
if (this.captchaEnabled) { |
|
|
|
|
|
this.getCode(); |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
}else{ |
|
|
}else{ |
|
|
this.loading = false; |
|
|
this.loading = false; |
|
|
|
|
|
this.loginForm.force = false |
|
|
if (this.captchaEnabled) { |
|
|
if (this.captchaEnabled) { |
|
|
this.getCode(); |
|
|
this.getCode(); |
|
|
} |
|
|
} |
|
|
|