feat: resource-group-management

This commit is contained in:
lcx committed 2025-12-16 15:47:11 +08:00
1 parent ff870630fa
commit c5a020c65c
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")) {