feat(v2.7): 接入协作治理前端体验
This commit is contained in:
@@ -90,6 +90,8 @@ export const api = {
|
||||
patch: <T>(path: string, data: unknown) =>
|
||||
request<T>(path, { method: 'PATCH', body: JSON.stringify(data) }),
|
||||
delete: <T>(path: string) => request<T>(path, { method: 'DELETE' }),
|
||||
deleteWithBody: <T>(path: string, data: unknown) =>
|
||||
request<T>(path, { method: 'DELETE', body: JSON.stringify(data) }),
|
||||
postRaw: async <T>(path: string, data: unknown, timeoutMs = 120000): Promise<T> => {
|
||||
// 调用 AI 类长耗时接口时使用,跳过 checkApi 短路(确保走真实请求)
|
||||
const controller = new AbortController();
|
||||
|
||||
Reference in New Issue
Block a user