From f836d816ad421ec82b2169ca37bfa105e48a06f5 Mon Sep 17 00:00:00 2001 From: chenqi Date: Fri, 5 Jun 2026 14:56:41 +0800 Subject: [PATCH] =?UTF-8?q?chore(config):=20=E6=9B=B4=E6=96=B0=E5=BC=80?= =?UTF-8?q?=E5=8F=91=E7=8E=AF=E5=A2=83API=E4=BB=A3=E7=90=86=E7=9B=AE?= =?UTF-8?q?=E6=A0=87=E7=AB=AF=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将代理目标从 localhost:18082 更改为 localhost:18080 - 保持环境变量 VITE_API_PROXY 的优先级配置 --- healthlink-his-ui/vite.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/healthlink-his-ui/vite.config.js b/healthlink-his-ui/vite.config.js index e4a7317b7..85316d19f 100755 --- a/healthlink-his-ui/vite.config.js +++ b/healthlink-his-ui/vite.config.js @@ -1,4 +1,4 @@ -/* +/* * @Author: sjjh * @Date: 2025-04-09 09:33:35 * @Description: @@ -41,7 +41,7 @@ export default defineConfig(({ mode, command }) => { proxy: { // https://cn.vitejs.dev/config/#server-proxy '/dev-api': { - target: process.env.VITE_API_PROXY || 'http://localhost:18082/healthlink-his', + target: process.env.VITE_API_PROXY || 'http://localhost:18080/healthlink-his', changeOrigin: true, rewrite: (p) => p.replace(/^\/dev-api/, ''), },