【bugfix】:修复滑块验证码无任何滑动直接点击验证时,x坐标空,导致后端NPE的问题

Signed-off-by: 柯杨 <key5230@163.com>
(cherry picked from commit 8bb9dec328)
This commit is contained in:
柯杨 2023-11-14 01:43:59 +00:00 committed by shizhong
parent fa1d2f25e7
commit 9449829fd3

View File

@ -279,7 +279,7 @@ const end = () => {
endMovetime.value = +new Date()
//
if (status.value && isEnd.value == false) {
var moveLeftDistance = parseInt((moveBlockLeft.value || '').replace('px', ''))
var moveLeftDistance = parseInt((moveBlockLeft.value || '0').replace('px', ''))
moveLeftDistance = (moveLeftDistance * 310) / parseInt(setSize.imgWidth)
let data = {
captchaType: captchaType.value,