Skip to content

Commit

Permalink
✨ 新增图形验证码
Browse files Browse the repository at this point in the history
  • Loading branch information
Hccake committed Jan 12, 2021
1 parent ad3da94 commit d8781c7
Show file tree
Hide file tree
Showing 9 changed files with 1,227 additions and 22 deletions.
23 changes: 23 additions & 0 deletions src/api/captcha.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* 此处可直接引用自己项目封装好的 axios 配合后端联调
*/
import request from '@/utils/request' //组件内部封装的axios
// import request from "@/api/axios.js" //调用项目封装的axios

//获取验证图片 以及token
export function reqGet(data) {
return request({
url: '/captcha/get',
method: 'post',
data
})
}

//滑动或者点选验证
export function reqCheck(data) {
return request({
url: '/captcha/check',
method: 'post',
data
})
}
Loading

0 comments on commit d8781c7

Please sign in to comment.