pull/323/head
Ryan Wang 2021-05-24 22:06:49 +08:00 committed by GitHub
parent ef59a93131
commit f32a92d680
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -84,7 +84,7 @@ logApi.logTypes = {
},
LOGGED_PRE_CHECK: {
value: 70,
text: '登验证'
text: '登验证'
}
}

View File

@ -5,7 +5,7 @@
:model="form.model"
:rules="form.rules"
layout="vertical"
@keyup.enter.native="handleLogin"
@keyup.enter.native="form.needAuthCode ? handleLogin() : handleLoginClick()"
>
<a-form-model-item
v-if="!form.needAuthCode"
@ -112,9 +112,9 @@ export default {
},
handleLogin() {
const _this = this
_this.form.logging = true
_this.$refs.loginForm.validate(valid => {
if (valid) {
_this.form.logging = true
_this
.login(_this.form.model)
.then(() => {

View File

@ -468,7 +468,7 @@ export default {
} else {
_this.handleCloseMFAuthModal()
_this.handleLoadStatistics()
_this.$message.success(_this.mfaUsed ? '两步验证已关闭!' : '两步验证已开启,下次登生效!')
_this.$message.success(_this.mfaUsed ? '两步验证已关闭!' : '两步验证已开启,下次登生效!')
}
},
handleCloseMFAuthModal() {