修改api
This commit is contained in:
		@@ -46,8 +46,8 @@ module.exports = {
 | 
				
			|||||||
    // 这里写入需要代理的api和对应的目标地址
 | 
					    // 这里写入需要代理的api和对应的目标地址
 | 
				
			||||||
    proxy: {
 | 
					    proxy: {
 | 
				
			||||||
      '/api': {
 | 
					      '/api': {
 | 
				
			||||||
        target: 'http://localhost:8080',
 | 
					        // target: 'http://192.168.0.148:8080',
 | 
				
			||||||
        // target: 'http://192.168.0.198:8080',
 | 
					        target: 'http://a.wms.picaiba.com/api',
 | 
				
			||||||
        // target: 'http://192.168.0.127:8080',
 | 
					        // target: 'http://192.168.0.127:8080',
 | 
				
			||||||
        // target: 'http://192.168.0.165:8080',
 | 
					        // target: 'http://192.168.0.165:8080',
 | 
				
			||||||
        // target: 'http://192.168.43.105:8080',
 | 
					        // target: 'http://192.168.43.105:8080',
 | 
				
			||||||
@@ -58,7 +58,7 @@ module.exports = {
 | 
				
			|||||||
        ws: true,
 | 
					        ws: true,
 | 
				
			||||||
        changeOrigin: true,
 | 
					        changeOrigin: true,
 | 
				
			||||||
        pathRewrite: {
 | 
					        pathRewrite: {
 | 
				
			||||||
          '^/portapi': ''
 | 
					          '^/api': ''
 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
        // 使用了proxy 就需要开启下面的选项 (http-proxy-middleware会将post请求给parse了 所以需要再次进行string化)
 | 
					        // 使用了proxy 就需要开启下面的选项 (http-proxy-middleware会将post请求给parse了 所以需要再次进行string化)
 | 
				
			||||||
        // onProxyReq: (proxyReq, req, res, options) => {
 | 
					        // onProxyReq: (proxyReq, req, res, options) => {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user