From b2cd3daabc1bf15426ed3d161201fd300fb59816 Mon Sep 17 00:00:00 2001 From: danial Date: Mon, 3 Mar 2025 21:03:26 +0800 Subject: [PATCH] =?UTF-8?q?refactor(nginx):=20=E4=BC=98=E5=8C=96=20Nginx?= =?UTF-8?q?=20=E9=85=8D=E7=BD=AE=E5=B9=B6=E8=B0=83=E6=95=B4=20API=20?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除了 Nginx 配置中的错误页面重定向指令 - 添加了 Nginx 的连接超时时间设置 - 修改了京东和沃尔玛卡片信息检查的 API 路径 --- deploy/nginx/default.conf | 1 - src/views/card-jd-info/account/components/component.tsx | 2 +- src/views/card-walmart-info/account/components/component.tsx | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/deploy/nginx/default.conf b/deploy/nginx/default.conf index 6d1fa44..53ce0f2 100644 --- a/deploy/nginx/default.conf +++ b/deploy/nginx/default.conf @@ -13,7 +13,6 @@ server { proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - error_page 405 =200 $uri; #以下是新增配置 proxy_connect_timeout 120; diff --git a/src/views/card-jd-info/account/components/component.tsx b/src/views/card-jd-info/account/components/component.tsx index 70dd8be..b1def32 100644 --- a/src/views/card-jd-info/account/components/component.tsx +++ b/src/views/card-jd-info/account/components/component.tsx @@ -225,7 +225,7 @@ export const batchImportModel = defineComponent({ Message.error('上传失败'); setLoading(false); }} - action={`${getAPIBaseUrl()}/cardInfo/JDCard/account/check`} + action={`${getAPIBaseUrl()}/api/cardInfo/JDCard/account/check`} headers={{ Authorization: `Bearer ${getToken()}`, tokenFrom: getTokenFrom() diff --git a/src/views/card-walmart-info/account/components/component.tsx b/src/views/card-walmart-info/account/components/component.tsx index 7c37d22..d1e81a9 100644 --- a/src/views/card-walmart-info/account/components/component.tsx +++ b/src/views/card-walmart-info/account/components/component.tsx @@ -222,7 +222,7 @@ export const batchImportModel = defineComponent({ Message.error('上传失败'); setLoading(false); }} - action={`${getAPIBaseUrl()}/cardInfo/walmart/account/check`} + action={`${getAPIBaseUrl()}/api/cardInfo/walmart/account/check`} headers={{ Authorization: `Bearer ${getToken()}`, tokenFrom: getTokenFrom()