diff --git a/app/pages/login/index.vue b/app/pages/login/index.vue index b3e0ef6..0d601f4 100644 --- a/app/pages/login/index.vue +++ b/app/pages/login/index.vue @@ -102,7 +102,13 @@ blockY:0 const getCode =async () => { isShow.value=true loadingRef.value.loading1=true - const res=await userCaptcha(captcha.value) + const res=await userCaptcha({ + canvasWidth:captcha.value.canvasWidth, + canvasHeight:captcha.value.canvasHeight, + blockWidth:captcha.value.blockWidth, + blockHeight:captcha.value.blockHeight, + place:captcha.value.place + }) if (res.status===0){ captcha.value.canvasSrc=`data:image/png;base64,${res.data.canvasSrc}` captcha.value.blockSrc=`data:image/png;base64,${res.data.blockSrc}`