-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
1,227 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
}) | ||
} |
Oops, something went wrong.