From 4af403b22b4fa13f8346572cb5727027b0e13d96 Mon Sep 17 00:00:00 2001 From: zwq Date: Wed, 23 Feb 2022 11:05:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vue.config.js b/vue.config.js index d760c0c..e51110b 100644 --- a/vue.config.js +++ b/vue.config.js @@ -46,8 +46,8 @@ module.exports = { // 这里写入需要代理的api和对应的目标地址 proxy: { '/api': { - target: 'http://localhost:8080', - // target: 'http://192.168.0.198:8080', + // target: 'http://192.168.0.148:8080', + target: 'http://a.wms.picaiba.com/api', // target: 'http://192.168.0.127:8080', // target: 'http://192.168.0.165:8080', // target: 'http://192.168.43.105:8080', @@ -58,7 +58,7 @@ module.exports = { ws: true, changeOrigin: true, pathRewrite: { - '^/portapi': '' + '^/api': '' } // 使用了proxy 就需要开启下面的选项 (http-proxy-middleware会将post请求给parse了 所以需要再次进行string化) // onProxyReq: (proxyReq, req, res, options) => {