refactor(http): 重构HTTP模块结构,将相关文件迁移至src/http目录

将原本分散在src/utils和src/interceptors下的HTTP相关代码统一迁移至src/http目录,包括请求工具、拦截器、类型定义等
移除不再使用的src/interceptors目录
调整相关文件的引用路径
新增统一的HTTP模块入口文件
This commit is contained in:
feige996
2025-07-08 16:59:32 +08:00
parent c0118df836
commit dc5fdda452
21 changed files with 14 additions and 181 deletions

View File

@@ -1,4 +1,4 @@
import { API_DOMAINS, http } from '@/utils/request/alova'
import { API_DOMAINS, http } from '@/http/request/alova'
export interface IFoo {
id: number

View File

@@ -1,5 +1,5 @@
import type { ICaptcha, IUpdateInfo, IUpdatePassword, IUserInfoVo, IUserLogin } from './types/login'
import { http } from '@/utils/http'
import { http } from '@/http/http'
/**
* 登录表单