Hygge
|
d9e16baca9
|
feat: 添加 token 刷新功能及相关类型定义
- 在 typings.d.ts 中新增 IUserToken 接口
- 在 login.ts 中添加 refreshToken 函数以支持 token 刷新
- 在 types/login.ts 中新增 IUserTokenVo 接口
- 更新 http.ts 以处理 token 刷新逻辑
- 修改 interceptor.ts 以使用新的 token 类型
- 在 user.ts 中整合 token 状态管理
|
2025-08-21 15:49:14 +08:00 |
|
feige996
|
b8e7dc37e2
|
perf(http): 增加请求超时时间至60秒
原10秒超时时间对于某些复杂请求可能不足,调整为60秒以提供更稳定的请求处理
|
2025-08-17 15:14:14 +08:00 |
|
Utopia
|
3402624002
|
chore: 优化代码结构,将 CustomRequestOptions 定义到 http/types.ts 下
|
2025-08-11 16:33:15 +08:00 |
|
feige996
|
17e5030dfe
|
refactor(http): 重构http模块结构,优化文件组织
- 将alova和vue-query相关文件移动到http目录下
- 统一工具类文件到http/tools目录
- 删除冗余的service/app目录
- 更新相关引用路径
- 添加新的vue-query实现文件
|
2025-08-05 17:49:33 +08:00 |
|
feige996
|
dc5fdda452
|
refactor(http): 重构HTTP模块结构,将相关文件迁移至src/http目录
将原本分散在src/utils和src/interceptors下的HTTP相关代码统一迁移至src/http目录,包括请求工具、拦截器、类型定义等
移除不再使用的src/interceptors目录
调整相关文件的引用路径
新增统一的HTTP模块入口文件
|
2025-07-08 16:59:32 +08:00 |
|