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

Merge pull request !57 from 我在路旁寻觅狗/fix-captcha
pull/59/head
xingyu 2024-12-12 11:38:37 +00:00 committed by Gitee
commit 62f27cfb3a
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

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,