Browse Source

提交切换登陆页签默认展示页

朱鑫波 4 years ago
parent
commit
25707b65d9
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/user/Login.vue

+ 2 - 2
src/views/user/Login.vue

@@ -8,7 +8,7 @@
     <a-form :form="form" class="user-layout-login" ref="formLogin" id="formLogin">
       <a-tabs :activeKey="customActiveKey" :tabBarStyle="{ textAlign: 'center', borderBottom: 'unset' }"
         @change="handleTabClick">
-        <a-tab-pane key="tab1" tab="企业微信扫码登录">
+        <a-tab-pane key="tab1" tab="企业微信扫码登录" forceRender>
           <a-form-item>
             <div id="wx_reg" style="display:flex;justify-content: center;margin-top:15px"></div>
             <div style="display:flex;justify-content: center;color:red;font-size:16px;">
@@ -148,7 +148,7 @@
     },
     data() {
       return {
-        customActiveKey: 'tab2',
+        customActiveKey: 'tab1',
         loginBtn: false,
         // login type: 0 email, 1 username, 2 telephone
         loginType: 0,