diff --git a/openhis-ui-vue3/vite.config.js b/openhis-ui-vue3/vite.config.js index 4367998ae..5881e5af3 100755 --- a/openhis-ui-vue3/vite.config.js +++ b/openhis-ui-vue3/vite.config.js @@ -40,7 +40,7 @@ export default defineConfig(({ mode, command }) => { proxy: { // https://cn.vitejs.dev/config/#server-proxy '/dev-api': { - target: 'http://localhost:18082/openhis', + target: process.env.VITE_API_PROXY || 'http://localhost:18080/openhis', changeOrigin: true, rewrite: (p) => p.replace(/^\/dev-api/, ''), },