Codex Assistant
2025-11-06 375c18a6d2713ff19b22093eec57315992d8333f
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,