liveh5-nuxt/app/api/auth/index.js
xingyy 0107ff6217 feat(api): 重构 HTTP 请求模块
- 新增 ofetch 作为 HTTP 客户端,替换原有的 axios
- 实现全局的 HTTP 状态码处理器
- 添加请求和响应的拦截器
-重构登录页面,使用 van-swipe 组件实现页面切换
-移除旧的请求模块,简化代码结构
2025-01-16 15:40:06 +08:00

10 lines
206 B
JavaScript

import { getHttp } from '@/api/http.ts'
export async function senCode(data) {
const http = getHttp()
return await http('/api/v1/m/user/send', {
method: 'POST',
body: data,
})
}