2025-09-28

This commit is contained in:
2025-09-28 09:21:15 +08:00
parent d2a0584ee5
commit 5110537d73
24 changed files with 819 additions and 365 deletions

View File

@@ -2,16 +2,18 @@ import {
http
} from "../util/api"
const baseURL = "http://192.168.0.4:3005"
// 验证码相关API
export const captchaAPI = {
// 生成验证码
generate: () => http.get('/captcha/generate'),
generate: () => http.get(baseURL + '/captcha/generate'),
// 验证验证码
verify: (data) => http.post('/captcha/verify', data),
verify: (data) => http.post(baseURL + '/captcha/verify', data),
// 发送手机验证码
smsSend: (phone) => http.post('/sms/send', {
smsSend: (phone) => http.post(baseURL + '/sms/send', {
phone
})
}