From f550b55341360efa1212fdc6f8181d785af812c5 Mon Sep 17 00:00:00 2001 From: b2894lxlx <517289602@qq.com> Date: Fri, 7 Aug 2026 13:15:38 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E6=96=B0=E5=A2=9E=E5=A4=8D=E8=AF=84?= =?UTF-8?q?=E6=9D=83=E9=99=90=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/vehicle/customer-archive.vue | 10 ++++++++-- vite.config.mjs | 6 +++--- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/src/views/vehicle/customer-archive.vue b/src/views/vehicle/customer-archive.vue index 15c00e9..03acb4f 100644 --- a/src/views/vehicle/customer-archive.vue +++ b/src/views/vehicle/customer-archive.vue @@ -1075,7 +1075,7 @@ @@ -1148,7 +1148,13 @@ diff --git a/vite.config.mjs b/vite.config.mjs index aeb75ef..00cdeec 100644 --- a/vite.config.mjs +++ b/vite.config.mjs @@ -62,11 +62,11 @@ export default ({ server: { port: 2888, proxy: { - // 开发期同源代理:浏览器请求 /api/xxx -> 由 Vite 转发到 http://172.16.203.228:8000/api/xxx - // 必须保留 /api 前缀(不要 rewrite 去掉),与 openresty/nginx 期望的路径一致,从而规避跨域(CORS)问题 '/api': { - target: 'http://172.16.203.228:8000', + target: 'http://localhost', + //target: 'https://saber3.bladex.cn/api', changeOrigin: true, + rewrite: path => path.replace(/^\/api/, ''), }, }, },