feat: 前端联调配置 - Vite代理配置支持/sys/cust/proj路由

This commit is contained in:
zhangjf 2026-02-15 16:21:16 +08:00
parent 023349480f
commit 69a3d62c3e
2 changed files with 11 additions and 4 deletions

View File

@ -13,10 +13,17 @@ export default defineConfig({
server: {
port: 5173,
proxy: {
'/api': {
'/sys': {
target: 'http://localhost:8080',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
changeOrigin: true
},
'/cust': {
target: 'http://localhost:8080',
changeOrigin: true
},
'/proj': {
target: 'http://localhost:8080',
changeOrigin: true
}
}
}

@ -1 +1 @@
Subproject commit 8154bef0f1553ebb3536f9f3d1d85c8e9e4a706f
Subproject commit a4482f39227ac242cf393f09d581ba1945d0142a