mirror of
https://gitee.com/yudaocode/yudao-ui-admin-vben.git
synced 2025-12-30 10:32:25 +00:00
fix:修复滑块验证不拖动滑块时的问题
当未拖动滑块时,parseInt出来的结果是NaN,调用后端接口后,会出现系统异常 Signed-off-by: 我在路旁寻觅狗 <1327410210@qq.com>
This commit is contained in:
@@ -206,7 +206,7 @@ function end() {
|
||||
endMovetime.value = +new Date()
|
||||
// 判断是否重合
|
||||
if (status.value && isEnd.value === false) {
|
||||
let moveLeftDistance = Number.parseInt((moveBlockLeft.value || '').replace('px', ''))
|
||||
let moveLeftDistance = Number.parseInt((moveBlockLeft.value || 0))
|
||||
moveLeftDistance = (moveLeftDistance * 310) / Number.parseInt(setSize.imgWidth)
|
||||
const data = {
|
||||
captchaType: captchaType.value,
|
||||
|
||||
Reference in New Issue
Block a user