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: { LOGGED_PRE_CHECK: {
value: 70, value: 70,
text: '登验证' text: '登验证'
} }
} }

View File

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

View File

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