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()