|
@@ -4,10 +4,10 @@
|
|
|
<div class="sign-text">登录到 联锁管理平台</div>
|
|
|
<a-form-model class="user-layout-login" @keyup.enter.native="handleSubmit">
|
|
|
<a-tabs :activeKey="customActiveKey" :tabBarStyle="{ textAlign: 'center', borderBottom: 'unset' }" @change="handleTabClick" class="u-login-tabs">
|
|
|
- <a-tab-pane key="SSO" tab="SSO">
|
|
|
+ <a-tab-pane key="sso" tab="SSO">
|
|
|
<login-sso ref="ssologin" @validateFail="validateFail" @success="requestSuccess" @fail="requestFailed"></login-sso>
|
|
|
</a-tab-pane>
|
|
|
- <a-tab-pane key="SYSTEM" tab="标准">
|
|
|
+ <a-tab-pane key="system" tab="标准">
|
|
|
<login-account ref="alogin" @validateFail="validateFail" @success="requestSuccess" @fail="requestFailed"></login-account>
|
|
|
</a-tab-pane>
|
|
|
|
|
@@ -66,7 +66,7 @@ export default {
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
- customActiveKey: 'SSO',
|
|
|
+ customActiveKey: 'sso',
|
|
|
rememberMe: true,
|
|
|
loginBtn: false,
|
|
|
requiredTwoStepCaptcha: false,
|
|
@@ -102,7 +102,7 @@ export default {
|
|
|
//登录
|
|
|
handleSubmit () {
|
|
|
this.loginBtn = true;
|
|
|
- if (this.customActiveKey === 'SSO') {
|
|
|
+ if (this.customActiveKey === 'sso') {
|
|
|
//SSO单点登录
|
|
|
this.$refs.ssologin.handleLogin(this.rememberMe)
|
|
|
} else {
|
|
@@ -127,7 +127,7 @@ export default {
|
|
|
duration: 4,
|
|
|
});
|
|
|
//账户密码登录错误后更新验证码
|
|
|
- // if(this.customActiveKey === 'SSO' && description.indexOf('密码错误')>0){
|
|
|
+ // if(this.customActiveKey === 'sso' && description.indexOf('密码错误')>0){
|
|
|
// this.$refs.alogin.handleChangeCheckCode()
|
|
|
// }
|
|
|
this.loginBtn = false;
|