fix: allow slower datasource resource listing

This commit is contained in:
langcaiye
2026-06-03 17:44:18 +08:00
committed by lyingbug
parent 3c6a8b718e
commit 2caa1e0508
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ export function validateCredentials(type: string, credentials: Record<string, an
} }
export function listResources(id: string) { export function listResources(id: string) {
return get(`/api/v1/datasource/${id}/resources`) return get(`/api/v1/datasource/${id}/resources`, { timeout: 120000 })
} }
export function triggerSync(id: string) { export function triggerSync(id: string) {
+2 -2
View File
@@ -214,8 +214,8 @@ instance.interceptors.response.use(
} }
); );
export function get(url: string) { export function get(url: string, config?: any) {
return instance.get(url); return instance.get(url, config);
} }
export async function getDown(url: string) { export async function getDown(url: string) {