第一次提交
This commit is contained in:
17
api/captcha.js
Executable file
17
api/captcha.js
Executable file
@@ -0,0 +1,17 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// api地址
|
||||
const api = {
|
||||
image: 'captcha/image',
|
||||
sendSmsCaptcha: 'captcha/sendSmsCaptcha'
|
||||
}
|
||||
|
||||
// 图形验证码
|
||||
export function image() {
|
||||
return request.get(api.image, {}, { load: false })
|
||||
}
|
||||
|
||||
// 发送短信验证码
|
||||
export function sendSmsCaptcha(data) {
|
||||
return request.post(api.sendSmsCaptcha, data, { load: false })
|
||||
}
|
||||
Reference in New Issue
Block a user