소스 검색

fix: 修改获取验证码入参接口

liangan 4 일 전
부모
커밋
571833ea99
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      src/pages/forgotPassword/forgotPassword.vue
  2. 1 1
      src/pages/register/register.vue

+ 1 - 1
src/pages/forgotPassword/forgotPassword.vue

@@ -70,7 +70,7 @@ async function getVerificationCode() {
     })
 
     // 调用获取验证码接口
-    await getCode(formData.value.phone)
+    await getCode(`88${formData.value.phone}`)
 
     uni.hideLoading()
     toast.success(t('auth.forgotPassword.success.codeSent'))

+ 1 - 1
src/pages/register/register.vue

@@ -66,7 +66,7 @@ async function getVerificationCode() {
     })
 
     // 调用获取验证码接口
-    await getCode(formData.value.phone)
+    await getCode(`88${formData.value.phone}`)
 
     uni.hideLoading()
     toast.success(t('auth.register.success.codeSent'))