Merge pull request #78 from xpack-ai/feat/resource-group-management

feat:  resource-group-management
This commit is contained in:
ningyv authored and GitHub committed 2025-12-16 15:48:13 +08:00
commit b74a042f75
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -38,7 +38,7 @@ export const fetchAdminAPI = async <T = any>(
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 {
+1 -1
View File
@@ -46,7 +46,7 @@ export const fetchAPI = async <T = any>(
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")) {