feat: 对接完接口
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
class="text-right flex-1 text-14"
|
||||
placeholder="请输入验证码"
|
||||
/>
|
||||
<image
|
||||
<img
|
||||
:src="codeUrl"
|
||||
class="w-100 h-30 ml-15 bg-gray-400"
|
||||
mode="widthFix"
|
||||
@@ -84,7 +84,7 @@ const formData = ref({
|
||||
captcha: '',
|
||||
})
|
||||
|
||||
const { codeUrl, refreshCode } = useCaptcha()
|
||||
const { codeUrl, t: captchaT, refreshCode } = useCaptcha()
|
||||
|
||||
let redirect = '/'
|
||||
onLoad((options) => {
|
||||
@@ -110,7 +110,7 @@ const handleLogin = async () => {
|
||||
data: {
|
||||
userinfo: { token },
|
||||
},
|
||||
} = await loginUserAPI(formData.value)
|
||||
} = await loginUserAPI({ ...formData.value, t: captchaT.value })
|
||||
userStore.setToken(token)
|
||||
uni.reLaunch({
|
||||
url: redirect,
|
||||
|
||||
Reference in New Issue
Block a user