!57 修复未拖动滑块位置时,调用验证滑块验证接口出现系统异常的问题

Merge pull request !57 from 我在路旁寻觅狗/fix-captcha
This commit is contained in:
xingyu
2024-12-12 11:38:37 +00:00
committed by Gitee

View File

@@ -206,7 +206,7 @@ function end() {
endMovetime.value = +new Date()
// 判断是否重合
if (status.value && isEnd.value === false) {
let moveLeftDistance = Number.parseInt((moveBlockLeft.value || '').replace('px', ''))
let moveLeftDistance = Number.parseInt((moveBlockLeft.value || 0))
moveLeftDistance = (moveLeftDistance * 310) / Number.parseInt(setSize.imgWidth)
const data = {
captchaType: captchaType.value,