Skip to content

Commit d8781c7

Browse files
committed
✨ 新增图形验证码
1 parent ad3da94 commit d8781c7

File tree

9 files changed

+1227
-22
lines changed

9 files changed

+1227
-22
lines changed

src/api/captcha.js

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/**
2+
* 此处可直接引用自己项目封装好的 axios 配合后端联调
3+
*/
4+
import request from '@/utils/request' //组件内部封装的axios
5+
// import request from "@/api/axios.js" //调用项目封装的axios
6+
7+
//获取验证图片 以及token
8+
export function reqGet(data) {
9+
return request({
10+
url: '/captcha/get',
11+
method: 'post',
12+
data
13+
})
14+
}
15+
16+
//滑动或者点选验证
17+
export function reqCheck(data) {
18+
return request({
19+
url: '/captcha/check',
20+
method: 'post',
21+
data
22+
})
23+
}

0 commit comments

Comments
 (0)