Skip to content

Commit 8bb9dec

Browse files
key9527gitee-org
authored andcommitted
【bugfix】:修复滑块验证码无任何滑动直接点击验证时,x坐标空,导致后端NPE的问题
Signed-off-by: 柯杨 <[email protected]>
1 parent eb9f8c9 commit 8bb9dec

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)