Browse Source

默认账号密码登录

lifanagju_citu 7 months ago
parent
commit
8e56c15dd6
1 changed files with 4 additions and 3 deletions
  1. 4 3
      src/views/login/index.vue

+ 4 - 3
src/views/login/index.vue

@@ -23,8 +23,8 @@
           <!-- 个人登录 -->
           <div v-show="!isEnterpriseLogin" class="login-tab">
             <v-tabs v-model="tab" align-tabs="center" color="primary" class="mb-10" @update:modelValue="tabChange">
-              <v-tab :value="1">验证码</v-tab>
               <v-tab :value="2">账号</v-tab>
+              <v-tab :value="1">验证码</v-tab>
               <!-- <v-tab :value="3">微信</v-tab> -->
             </v-tabs>
             <v-window v-model="tab">
@@ -105,7 +105,7 @@ onMounted(() => {
 
 const { t } = useI18n()
 const router = useRouter()
-const tab = ref(1)
+const tab = ref(2)
 const tab1 = ref(1)
 const isAgree = ref(false)
 const isEnterpriseLogin = ref(route.query?.entLogin || false)
@@ -113,7 +113,8 @@ const isEnterpriseLogin = ref(route.query?.entLogin || false)
 const handleChangeLogin = () => {
   isEnterpriseLogin.value = !isEnterpriseLogin.value
   nextTick(() => {
-    tab.value = isEnterpriseLogin.value ? 2 : 1 // 为了验证邮箱validate
+    // tab.value = isEnterpriseLogin.value ? 2 : 1 // 为了验证邮箱validate,企业邮箱登录时需要tab
+    tab.value = 2 // 为了验证邮箱validate,企业邮箱登录时需要tab=2
   })
 }