Browse Source

fix: #331 (#332)

pull/323/head
Ryan Wang 4 years ago committed by GitHub
parent
commit
f32a92d680
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/api/log.js
  2. 4
      src/components/Login/LoginForm.vue
  3. 2
      src/views/user/Profile.vue

2
src/api/log.js

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

4
src/components/Login/LoginForm.vue

@ -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(() => {

2
src/views/user/Profile.vue

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

Loading…
Cancel
Save