| 12345678910111213141516171819202122232425262728 |
- /**
- * 此处可直接引用自己项目封装好的 axios 配合后端联调
- */
- import request from './../utils/axios' // 组件内部封装的axios
- // import request from "@/api/axios.js" //调用项目封装的axios
- // 获取验证图片 以及token
- export function reqGet(data) {
- return request({
- // url: '/captcha/get',
- url: '/admin-api/system/captcha/get', // 使用项目自定义的 /admin-api/ 前缀
- method: 'post',
- data
- })
- }
- // 滑动或者点选验证
- export function reqCheck(data) {
- return request({
- // url: '/captcha/check',
- url: '/admin-api/system/captcha/check', // 使用项目自定义的 /admin-api/ 前缀
- method: 'post',
- data
- })
- }
|