fix: api/index.ts 恢复导出 request 基础 HTTP 助手(1346fbb 有 export, 工作树遗漏), 供 UserPortal 等恢复页面使用

This commit is contained in:
qyyfw committed 2026-07-11 16:10:50 +08:00
1 parent 3359e3498c
commit 223485848c
1 file changed
+1 -1
+1 -1
View File
@@ -10,7 +10,7 @@ function getToken(): string | null {
} }
// 通用请求方法 // 通用请求方法
async function request<T>( export async function request<T>(
endpoint: string, endpoint: string,
options: RequestInit = {} options: RequestInit = {}
): Promise<{ code: number; data: T; message: string }> { ): Promise<{ code: number; data: T; message: string }> {