1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-05 23:11:24 +08:00

Modified login logic

This commit is contained in:
2023-05-09 23:14:44 +08:00
parent 98d0847206
commit 0604595fc6

View File

@@ -103,6 +103,11 @@ export default {
this.captchaSrc = getCaptchaSrc()
},
login() {
if (this.loggingIn) {
return
}
this.loggingIn = true
const _this = this
if (!this.userName) {
ElMessage.error({
@@ -140,7 +145,6 @@ export default {
dangerouslyUseHTMLString: true,
message: '<strong>登录成功</strong>'
})
this.loggingIn = true
setTimeout(function () {
_this.$router.push('/')
}, 1500)
@@ -149,6 +153,8 @@ export default {
dangerouslyUseHTMLString: true,
message: '<strong>用户名</strong> 或 <strong>密码</strong> 错误'
})
this.getNewCaptcha()
this.loggingIn = false
}
})
}