1231
This commit is contained in:
parent
ecf14e5eeb
commit
a378a45b19
@ -102,7 +102,13 @@ blockY:0
|
|||||||
const getCode =async () => {
|
const getCode =async () => {
|
||||||
isShow.value=true
|
isShow.value=true
|
||||||
loadingRef.value.loading1=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){
|
if (res.status===0){
|
||||||
captcha.value.canvasSrc=`data:image/png;base64,${res.data.canvasSrc}`
|
captcha.value.canvasSrc=`data:image/png;base64,${res.data.canvasSrc}`
|
||||||
captcha.value.blockSrc=`data:image/png;base64,${res.data.blockSrc}`
|
captcha.value.blockSrc=`data:image/png;base64,${res.data.blockSrc}`
|
||||||
|
Loading…
Reference in New Issue
Block a user