web/src/api/media.js
@@ -1,5 +1,6 @@ // 媒体查询 API import { graphqlRequest, API_CONFIG } from '../config/api.ts'; import { serverUrl } from '../utils/appConfig.js'; const GRAPHQL_ENDPOINT = API_CONFIG.GRAPHQL_ENDPOINT; @@ -80,7 +81,7 @@ for (let attempt = 1; attempt <= maxRetries; attempt++) { try { const response = await fetch('http://localhost:8080/api/upload/image', { const response = await fetch(`${serverUrl}/api/upload/image`, { method: 'POST', headers: headers, body: formData,