From 6a0f4cc26a6ff9c97024ffaf3b9805d101b5df27 Mon Sep 17 00:00:00 2001 From: zerosaturation Date: Wed, 8 Apr 2026 00:18:12 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=89=8D=E7=AB=AF=E6=8B=A6=E6=88=AA?= =?UTF-8?q?=E5=99=A8=E6=94=AF=E6=8C=81=20202=20=E7=8A=B6=E6=80=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 202 Accepted 用于异步任务创建(如图生图 job) Co-Authored-By: Claude Opus 4.6 --- frontend/utils/api.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/utils/api.js b/frontend/utils/api.js index 5b87bb3..7c9b1fa 100644 --- a/frontend/utils/api.js +++ b/frontend/utils/api.js @@ -1,6 +1,7 @@ // API 基础配置 // const baseURL = 'http://101.132.250.62:8080' -const baseURL = 'http://192.168.110.60:8080' +// const baseURL = 'http://192.168.110.60:8080' +const baseURL = 'http://localhost:8080' // 是否使用模拟数据(开发调试时设为 true,后端API准备好后改为 false) const USE_MOCK_API = false @@ -54,7 +55,7 @@ function request(options) { } // 可以在这里统一处理响应 - if (res.statusCode === 200) { + if (res.statusCode === 200 || res.statusCode === 202) { // 检查业务状态码 if (res.data && res.data.code !== undefined) { if (res.data.code === 200) {