feat: 优化代码结构,统一接口命名与类型定义,更新页面样式

This commit is contained in:
Ray.Hao
2026-03-28 12:10:19 +08:00
parent 24d1c3477b
commit 00fb441436
45 changed files with 1315 additions and 1807 deletions

View File

@@ -25,8 +25,6 @@ interface RequestOptions<T = any> {
header?: Record<string, string>;
timeout?: number;
responseType?: "text" | "arraybuffer";
/** 是否跳过错误提示(如 Toast */
skipErrorToast?: boolean;
}
/**
@@ -95,13 +93,5 @@ function request<T = any>(options: RequestOptions): Promise<T> {
});
}
/**
* 无需认证的请求(兼容旧调用)
*
* 说明:当前 request 实现不会在“无 token”时阻断请求认证与否由后端决定。
*/
export function publicRequest<T = any>(options: RequestOptions): Promise<T> {
return request<T>(options);
}
export default request;