Skip to content

Commit 57908da

Browse files
committed
1. 修复滑块验证码,存在失败的情况
2. 重新构建 demo 预览项目
1 parent 3f74c71 commit 57908da

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/components/Verifition/api/index.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import request from './../utils/axios' // 组件内部封装的axios
88
// 获取验证图片 以及token
99
export function reqGet(data) {
1010
return request({
11-
url: '/captcha/get',
11+
// url: '/captcha/get',
12+
url: '/admin-api/captcha/get', // 使用项目自定义的 /admin-api/ 前缀
1213
method: 'post',
1314
data
1415
})
@@ -17,7 +18,8 @@ export function reqGet(data) {
1718
// 滑动或者点选验证
1819
export function reqCheck(data) {
1920
return request({
20-
url: '/captcha/check',
21+
// url: '/captcha/check',
22+
url: '/admin-api/captcha/check', // 使用项目自定义的 /admin-api/ 前缀
2123
method: 'post',
2224
data
2325
})

0 commit comments

Comments
 (0)