Skip to content

Commit 29a9478

Browse files
committed
fix 滑块验证码error
1 parent 8c9d089 commit 29a9478

File tree

3 files changed

+142
-131
lines changed

3 files changed

+142
-131
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"url": "https://github.com/YunaiV/ruoyi-vue-pro"
4141
},
4242
"dependencies": {
43-
"@babel/parser": "7.7.4",
43+
"@babel/parser": "7.18.4",
4444
"@riophae/vue-treeselect": "0.4.0",
4545
"axios": "0.27.2",
4646
"bpmn-js-token-simulation": "0.10.0",
@@ -87,7 +87,7 @@
8787
"eslint-plugin-prettier": "^3.1.0",
8888
"eslint-plugin-vue": "9.0.0",
8989
"fs-extra": "^8.1.0",
90-
"lint-staged": "10.5.3",
90+
"lint-staged": "12.5.0",
9191
"runjs": "4.4.2",
9292
"sass": "1.3.0",
9393
"sass-loader": "10.2.0",

src/components/Verifition/Verify/VerifySlide.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ export default {
276276
const _this = this
277277
// 判断是否重合
278278
if (this.status && this.isEnd === false) {
279-
const moveLeftDistance = parseInt((this.moveBlockLeft || '').replace('px', ''))
279+
let moveLeftDistance = parseInt((this.moveBlockLeft || '').replace('px', ''))
280280
moveLeftDistance = moveLeftDistance * 310 / parseInt(this.setSize.imgWidth)
281281
const data = {
282282
captchaType: this.captchaType,

0 commit comments

Comments
 (0)