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

Commit

Permalink
fix: #331 (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruibaby authored May 24, 2021
1 parent ef59a93 commit f32a92d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
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

0 comments on commit f32a92d

Please sign in to comment.