Skip to content

Commit f07d374

Browse files
YunaiVgitee-org
authored andcommitted
!321 修复滑块验证码无任何滑动直接点击验证时,x坐标空,导致后端NPE的问题
Merge pull request !321 from 柯杨/master
2 parents 538783c + 8bb9dec commit f07d374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Verifition/src/Verify/VerifySlide.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ const end = () => {
277277
endMovetime.value = +new Date()
278278
//判断是否重合
279279
if (status.value && isEnd.value == false) {
280-
var moveLeftDistance = parseInt((moveBlockLeft.value || '').replace('px', ''))
280+
var moveLeftDistance = parseInt((moveBlockLeft.value || '0').replace('px', ''))
281281
moveLeftDistance = (moveLeftDistance * 310) / parseInt(setSize.imgWidth)
282282
let data = {
283283
captchaType: captchaType.value,

0 commit comments

Comments
 (0)