From 9200654c35cfc21855f85d3672d07270c3485ac9 Mon Sep 17 00:00:00 2001 From: awen Date: Thu, 29 May 2025 12:07:21 +0800 Subject: [PATCH] =?UTF-8?q?minio=20=E4=BD=BF=E7=94=A8=E5=A4=96=E7=BD=91?= =?UTF-8?q?=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/axios-client.ts | 2 +- app/api/client.ts | 2 +- app/components/reviews/FilePreview.tsx | 2 +- app/routes/rules.new1.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/api/axios-client.ts b/app/api/axios-client.ts index 8503c29..9dca5e6 100644 --- a/app/api/axios-client.ts +++ b/app/api/axios-client.ts @@ -20,7 +20,7 @@ const API_BASE_URL = 'http://nas.7bm.co:3000'; // export const API_BASE_URL = 'http://nas.7bm.co:3000'; // 文档URL前缀 -export const DOCUMENT_URL = 'http://172.18.0.100:9000/docauditai/'; +export const DOCUMENT_URL = 'http://nas.7bm.co:9000/docauditai/'; // 是否使用模拟数据(开发环境使用) const USE_MOCK_DATA = false; // 设置为true使用模拟数据,避免API连接问题 diff --git a/app/api/client.ts b/app/api/client.ts index ab13c64..9cf5404 100644 --- a/app/api/client.ts +++ b/app/api/client.ts @@ -20,7 +20,7 @@ const API_BASE_URL = 'http://nas.7bm.co:3000'; // export const API_BASE_URL = 'http://nas.7bm.co:3000'; // 文档URL前缀 -export const DOCUMENT_URL = 'http://172.18.0.100:9000/docauditai/'; +export const DOCUMENT_URL = 'http://nas.7bm.co:9000/docauditai/'; // 是否使用模拟数据(开发环境使用) const USE_MOCK_DATA = false; // 设置为true使用模拟数据,避免API连接问题 diff --git a/app/components/reviews/FilePreview.tsx b/app/components/reviews/FilePreview.tsx index ca82396..0f3194c 100644 --- a/app/components/reviews/FilePreview.tsx +++ b/app/components/reviews/FilePreview.tsx @@ -397,7 +397,7 @@ export function FilePreview({ fileContent, activeReviewPointResultId, targetPage }} > { console.error("PDF加载错误:", error); diff --git a/app/routes/rules.new1.tsx b/app/routes/rules.new1.tsx index 140cad5..2a6e591 100644 --- a/app/routes/rules.new1.tsx +++ b/app/routes/rules.new1.tsx @@ -108,7 +108,7 @@ export const loader = async ({ request }: LoaderFunctionArgs) => { // 4. 本地服务器上的文档 (假设已经部署) local: "/uploads/sample.docx", // 5. PDF示例 - pdf: "http://172.18.0.100:9000/docauditai/documents/%E5%90%88%E5%90%8C%E6%96%87%E6%A1%A3/2025/04%E6%9C%8816%E6%97%A5/%E7%AC%AC16%E5%8F%B7--%E9%94%80%E5%94%AE%E6%97%A0%E6%A0%87%E5%BF%97%E5%A4%96%E5%9B%BD%E5%8D%B7%E7%83%9F_10%E6%97%B626%E5%88%8632%E7%A7%92/%E7%AC%AC16%E5%8F%B7--%E9%94%80%E5%94%AE%E6%97%A0%E6%A0%87%E5%BF%97%E5%A4%96%E5%9B%BD%E5%8D%B7%E7%83%9F.pdf" + pdf: "http://nas.7bm.co:9000/docauditai/documents/%E5%90%88%E5%90%8C%E6%96%87%E6%A1%A3/2025/04%E6%9C%8816%E6%97%A5/%E7%AC%AC16%E5%8F%B7--%E9%94%80%E5%94%AE%E6%97%A0%E6%A0%87%E5%BF%97%E5%A4%96%E5%9B%BD%E5%8D%B7%E7%83%9F_10%E6%97%B626%E5%88%8632%E7%A7%92/%E7%AC%AC16%E5%8F%B7--%E9%94%80%E5%94%AE%E6%97%A0%E6%A0%87%E5%BF%97%E5%A4%96%E5%9B%BD%E5%8D%B7%E7%83%9F.pdf" }; // 使用默认文档URL