Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

fix: Unable to redirect the 2FA page by pressing ENTER #332

Merged
merged 1 commit into from
May 24, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/api/log.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ logApi.logTypes = {
},
LOGGED_PRE_CHECK: {
value: 70,
text: '登陆验证'
text: '登录验证'
}
}

Expand Down
4 changes: 2 additions & 2 deletions src/components/Login/LoginForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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(() => {
Expand Down
2 changes: 1 addition & 1 deletion src/views/user/Profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ export default {
} else {
_this.handleCloseMFAuthModal()
_this.handleLoadStatistics()
_this.$message.success(_this.mfaUsed ? '两步验证已关闭!' : '两步验证已开启,下次登陆生效!')
_this.$message.success(_this.mfaUsed ? '两步验证已关闭!' : '两步验证已开启,下次登录生效!')
}
},
handleCloseMFAuthModal() {
Expand Down