Commit f07d3743 by 芋道源码 Committed by Gitee

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

Merge pull request !321 from 柯杨/master
parents 538783ce 8bb9dec3
...@@ -277,7 +277,7 @@ const end = () => { ...@@ -277,7 +277,7 @@ const end = () => {
endMovetime.value = +new Date() endMovetime.value = +new Date()
//判断是否重合 //判断是否重合
if (status.value && isEnd.value == false) { 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) moveLeftDistance = (moveLeftDistance * 310) / parseInt(setSize.imgWidth)
let data = { let data = {
captchaType: captchaType.value, captchaType: captchaType.value,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment