|
@@ -29,9 +29,9 @@ export default defineConfig({
|
|
|
target: 'http://192.168.103.33:8585/',
|
|
target: 'http://192.168.103.33:8585/',
|
|
|
// target: 'http://192.168.100.115:8585/', // 生产环境
|
|
// target: 'http://192.168.100.115:8585/', // 生产环境
|
|
|
changeOrigin: true,
|
|
changeOrigin: true,
|
|
|
- rewrite: (path) => {
|
|
|
|
|
|
|
+ rewrite: (path) => {
|
|
|
// console.log('path', path)
|
|
// console.log('path', path)
|
|
|
- return path.replace(/^\/api/, '')
|
|
|
|
|
|
|
+ return path.replace(/^\/forward-service/, '')
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|