Эх сурвалжийг харах

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

liangan 4 өдөр өмнө
parent
commit
571833ea99

+ 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'))