|
@@ -6,8 +6,8 @@ module.exports = {
|
|
|
open: true,
|
|
|
proxy: {
|
|
|
'/': { //前端任何含/api的URL请求都会被反向代理。如http://localhost:8000/xxx/api/source/xxx的请求会变成服务器的反向代理请求
|
|
|
- //target: 'http://127.0.0.1:49011', //原来请求的服务器IP地址会换成此地址,如以上地址会变成http://localhost:5000/xxx/api/source/xxx
|
|
|
- target: 'http://112.74.63.148:49011', //原来请求的服务器IP地址会换成此地址,如以上地址会变成http://localhost:5000/xxx/api/source/xxx
|
|
|
+ target: 'http://120.25.151.99:49011', //原来请求的服务器IP地址会换成此地址,如以上地址会变成http://localhost:5000/xxx/api/source/xxx
|
|
|
+ // target: 'http://112.74.63.148:49011', //原来请求的服务器IP地址会换成此地址,如以上地址会变成http://localhost:5000/xxx/api/source/xxx
|
|
|
changeOrigin: true, // 是否跨域
|
|
|
pathRewrite: {
|
|
|
// '.+?/api': '/api'
|