fix: vite代理端口修正 18080→18082
This commit is contained in:
@@ -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:18080/healthlink-his',
|
||||
target: process.env.VITE_API_PROXY || 'http://localhost:18082/healthlink-his',
|
||||
changeOrigin: true,
|
||||
rewrite: (p) => p.replace(/^\/dev-api/, ''),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user