2025-02-27 14:44:08 +08:00
|
|
|
export default {
|
|
|
|
server: {
|
|
|
|
proxy: {
|
|
|
|
'/api/f': {
|
|
|
|
target: 'http://localhost:8100',
|
|
|
|
changeOrigin: true,
|
|
|
|
rewrite: path => path.replace(/^\/api\/f/, '')
|
|
|
|
},
|
|
|
|
// 使用 proxy 实例
|
|
|
|
'/api': {
|
2025-03-12 09:15:30 +08:00
|
|
|
target: 'http://localhost:8105',
|
2025-02-27 14:44:08 +08:00
|
|
|
changeOrigin: true,
|
2025-03-12 09:15:30 +08:00
|
|
|
rewrite: path => path.replace(/^\/api/, '')
|
2025-02-27 14:44:08 +08:00
|
|
|
}
|
|
|
|
},
|
|
|
|
port: 8080
|
|
|
|
}
|
|
|
|
}
|