Browse Source

!321 修复滑块验证码无任何滑动直接点击验证时,x坐标空,导致后端NPE的问题
Merge pull request !321 from 柯杨/master

芋道源码 1 year ago
parent
commit
f07d37438d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/Verifition/src/Verify/VerifySlide.vue

+ 1 - 1
src/components/Verifition/src/Verify/VerifySlide.vue

@@ -277,7 +277,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,