forked from github/dataease
19 lines
401 B
Java
19 lines
401 B
Java
|
export default {
|
||
|
server: {
|
||
|
proxy: {
|
||
|
'/api/f': {
|
||
|
target: 'http://localhost:8100',
|
||
|
changeOrigin: true,
|
||
|
rewrite: path => path.replace(/^\/api\/f/, '')
|
||
|
},
|
||
|
// 使用 proxy 实例
|
||
|
'/api': {
|
||
|
target: 'http://localhost:8100',
|
||
|
changeOrigin: true,
|
||
|
rewrite: path => path.replace(/^\/api/, 'de2api')
|
||
|
}
|
||
|
},
|
||
|
port: 8080
|
||
|
}
|
||
|
}
|