From c5a020c65ce0ae8897535f27cb7fd47228450361 Mon Sep 17 00:00:00 2001 From: lcx <1793599591@qq.com> Date: Tue, 16 Dec 2025 15:47:11 +0800 Subject: [PATCH] feat: resource-group-management --- frontend/src/rpc/admin-api.ts | 2 +- frontend/src/shared/rpc/common-function.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/rpc/admin-api.ts b/frontend/src/rpc/admin-api.ts index 08660db..4fb3ee8 100644 --- a/frontend/src/rpc/admin-api.ts +++ b/frontend/src/rpc/admin-api.ts @@ -38,7 +38,7 @@ export const fetchAdminAPI = async ( const contentType = response.headers.get("Content-Type"); // Parse response based on content type - if (contentType?.includes("application/json") || response.url.startsWith("http://uat.apikit.com:11204/")) { + if (contentType?.includes("application/json")) { const result = await response.json(); return result; } else { diff --git a/frontend/src/shared/rpc/common-function.ts b/frontend/src/shared/rpc/common-function.ts index 1c36b4d..f8ee831 100644 --- a/frontend/src/shared/rpc/common-function.ts +++ b/frontend/src/shared/rpc/common-function.ts @@ -46,7 +46,7 @@ export const fetchAPI = async ( const contentType = response.headers.get("Content-Type"); // Parse response based on content type - if (contentType?.includes("application/json") || response.url.startsWith("http://uat.apikit.com:11204/")) { + if (contentType?.includes("application/json")) { const result = await response.json(); return result; } else if (contentType && contentType.includes("text/event-stream")) {