|
@@ -59,17 +59,19 @@ export default defineConfig({
|
|
|
return path.replace(/^\/mock-api/, 'mock-api')
|
|
|
}
|
|
|
},
|
|
|
- '/ssw-api': {
|
|
|
- target: 'http://10.110.45.26:18069/',
|
|
|
- // target: 'http://8.130.72.63:18068/',
|
|
|
+ '/ssw-api/api': {
|
|
|
+ // target: 'http://10.110.45.26:18069/',
|
|
|
+ target: 'http://8.130.72.63:18068/',
|
|
|
changeOrigin: true,
|
|
|
rewrite: (path) => {
|
|
|
- return path.replace(/^\/api/, '')
|
|
|
+ return path.replace(/^\/ssw-api\/api/, '')
|
|
|
+ // console.log(path)
|
|
|
+ // return path
|
|
|
}
|
|
|
},
|
|
|
'/ws-api': {
|
|
|
- // target: 'ws://8.130.72.63:18073/',
|
|
|
- target: 'ws://10.110.45.26:18069/ws-api',
|
|
|
+ target: 'ws://8.130.72.63:18073/',
|
|
|
+ // target: 'ws://10.110.45.26:18069/ws-api',
|
|
|
ws: true,
|
|
|
changeOrigin: true,
|
|
|
rewrite: path => {
|