This website requires JavaScript.
Explore
Help
Register
Sign In
scout666
/
liveh5-nuxt
Watch
1
Star
0
Fork
0
You've already forked liveh5-nuxt
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
629e31bc21
liveh5-nuxt
/
app
/
plugins
/
http.ts
6 lines
97 B
TypeScript
Raw
Normal View
History
Unescape
Escape
refactor: 将导入路径从波浪号(~)改为 @- 修改了多个文件中的导入路径,将 ~/ 替换为 @/ - 这个改动统一了项目中的导入路径格式,提高了代码的一致性和可维护性
2025-01-23 11:43:45 +00:00
import
{
setupHttp
}
from
'@/api/http'
feat(api): 重构 HTTP 请求模块 - 新增 ofetch 作为 HTTP 客户端,替换原有的 axios - 实现全局的 HTTP 状态码处理器 - 添加请求和响应的拦截器 -重构登录页面,使用 van-swipe 组件实现页面切换 -移除旧的请求模块,简化代码结构
2025-01-16 07:40:06 +00:00
export
default
defineNuxtPlugin
(
(
)
=
>
{
setupHttp
(
)
}
)
Reference in New Issue
Copy Permalink