This commit is contained in:
xingyy 2025-03-13 11:19:50 +08:00
parent ecf14e5eeb
commit a378a45b19

View File

@ -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}`