From cd42d41344f0f780e0c0ac0a3625aeb78160f9dd Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期五, 19 六月 2020 19:58:52 +0800
Subject: [PATCH] 2020-06-19

---
 src/setupProxy.js |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/src/setupProxy.js b/src/setupProxy.js
index e2434ee..a14f43b 100644
--- a/src/setupProxy.js
+++ b/src/setupProxy.js
@@ -1,6 +1,8 @@
 const proxy = require('http-proxy-middleware')
 const host = 'http://qingqiumarket.cn'
 const service = 'mkwms/'
+// const host = 'http://cloud.mk9h.cn'
+// const service = ''
 
 module.exports = function(app) {
   app.use(proxy('/webapi', { 
@@ -22,7 +24,7 @@
     }
   }))
 
-  app.use(proxy('/Upload', { // 鐧诲綍鎺ュ彛
+  app.use(proxy('/Upload', {
     target: `${host}/${service}zh-CN/Home/Upload`,
     secure: false,
     changeOrigin: true,
@@ -31,12 +33,12 @@
     }
   }))
 
-  app.use(proxy('/local', { 
-    target: 'http://127.0.0.1:8888',
-    secure: false,
-    changeOrigin: true,
-    pathRewrite: {
-    '^/local': '/'
-    }
-  }))
+  // app.use(proxy('/local', { 
+  //   target: 'http://127.0.0.1:8888',
+  //   secure: false,
+  //   changeOrigin: true,
+  //   pathRewrite: {
+  //   '^/local': '/'
+  //   }
+  // }))
 }
\ No newline at end of file

--
Gitblit v1.8.0