feat: 前端联调配置 - Vite代理配置支持/sys/cust/proj路由
This commit is contained in:
parent
023349480f
commit
69a3d62c3e
@ -13,10 +13,17 @@ export default defineConfig({
|
|||||||
server: {
|
server: {
|
||||||
port: 5173,
|
port: 5173,
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/sys': {
|
||||||
target: 'http://localhost:8080',
|
target: 'http://localhost:8080',
|
||||||
changeOrigin: true,
|
changeOrigin: true
|
||||||
rewrite: (path) => path.replace(/^\/api/, '')
|
},
|
||||||
|
'/cust': {
|
||||||
|
target: 'http://localhost:8080',
|
||||||
|
changeOrigin: true
|
||||||
|
},
|
||||||
|
'/proj': {
|
||||||
|
target: 'http://localhost:8080',
|
||||||
|
changeOrigin: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
Subproject commit 8154bef0f1553ebb3536f9f3d1d85c8e9e4a706f
|
Subproject commit a4482f39227ac242cf393f09d581ba1945d0142a
|
||||||
Loading…
x
Reference in New Issue
Block a user