mirror of https://github.com/halo-dev/halo-admin
parent
ef59a93131
commit
f32a92d680
|
@ -84,7 +84,7 @@ logApi.logTypes = {
|
||||||
},
|
},
|
||||||
LOGGED_PRE_CHECK: {
|
LOGGED_PRE_CHECK: {
|
||||||
value: 70,
|
value: 70,
|
||||||
text: '登陆验证'
|
text: '登录验证'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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(() => {
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue