Explorar o código

职位分享-登录自动注册账号

Xiao_123 hai 7 meses
pai
achega
38431f782a
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      src/views/common/loginDialog.vue

+ 2 - 1
src/views/common/loginDialog.vue

@@ -13,6 +13,7 @@
       <v-btn :loading="loginLoading" color="primary" class="white--text mt-5" min-width="350" @click="handleLogin">
         {{ $t('login.loginOrRegister') }}
       </v-btn>
+      <div class="text-center color-666 font-size-14 mt-3">未注册的手机号,验证后自动注册账号</div>
     </div>
   </CtDialog>
 </template>
@@ -49,7 +50,7 @@ const handleLogin = async () => {
   }
   loginLoading.value = true
   try {
-    const params = { ...phoneRef.value.loginData } // 只能验证码登录
+    const params = { ...phoneRef.value.loginData, autoRegister: true } // autoRegister: 是否自动注册
     await userStore.handleSmsLogin(params)
     emit('loginSuccess')
   } catch (error) {