From 3d048c6bbb3a5bd96fc231212f005b42e93233a7 Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期四, 18 三月 2021 09:19:30 +0800
Subject: [PATCH] 2021-03-18

---
 src/setupProxy.js |   93 +++++++++++++++++++++++-----------------------
 1 files changed, 47 insertions(+), 46 deletions(-)

diff --git a/src/setupProxy.js b/src/setupProxy.js
index d5d27d1..c5707d5 100644
--- a/src/setupProxy.js
+++ b/src/setupProxy.js
@@ -1,51 +1,52 @@
-const proxy = require('http-proxy-middleware')
-const host = 'http://qingqiumarket.cn'
-const service = 'mkwms/'
+// const proxy = require('http-proxy-middleware')
+// const host = 'http://qingqiumarket.cn'
+// const service = 'mkwms/'
 
-module.exports = function(app) {
-  app.use(proxy('/webapi', { 
-    target: `${host}/${service}webapi`,
-    secure: false,
-    changeOrigin: true,
-    pathRewrite: {
-    '^/webapi': '/'
-    }
-    // cookieDomainRewrite: "http://localhost:3000"
-  }))
+module.exports = function() {}
+// module.exports = function(app) {
+//   app.use(proxy('/webapi', { 
+//     target: `${host}/${service}webapi`,
+//     secure: false,
+//     changeOrigin: true,
+//     pathRewrite: {
+//     '^/webapi': '/'
+//     }
+//     // cookieDomainRewrite: "http://localhost:3000"
+//   }))
   
-  app.use(proxy('/zh-CN', { // 鐧诲綍鎺ュ彛
-    target: `${host}/${service}zh-CN`,
-    secure: false,
-    changeOrigin: true,
-    pathRewrite: {
-    '^/zh-CN': '/'
-    }
-  }))
+//   app.use(proxy('/zh-CN', { // 鐧诲綍鎺ュ彛
+//     target: `${host}/${service}zh-CN`,
+//     secure: false,
+//     changeOrigin: true,
+//     pathRewrite: {
+//     '^/zh-CN': '/'
+//     }
+//   }))
 
-  app.use(proxy('/Upload', {
-    target: `${host}/${service}zh-CN/Home/Upload`,
-    secure: false,
-    changeOrigin: true,
-    pathRewrite: {
-    '^/Upload': '/'
-    }
-  }))
+//   app.use(proxy('/Upload', {
+//     target: `${host}/${service}zh-CN/Home/Upload`,
+//     secure: false,
+//     changeOrigin: true,
+//     pathRewrite: {
+//     '^/Upload': '/'
+//     }
+//   }))
 
-  app.use(proxy('/wxpay', {
-    target: `${host}/${service}wxpay`,
-    secure: false,
-    changeOrigin: true,
-    pathRewrite: {
-    '^/wxpay': '/'
-    }
-  }))
+//   app.use(proxy('/wxpay', {
+//     target: `${host}/${service}wxpay`,
+//     secure: false,
+//     changeOrigin: true,
+//     pathRewrite: {
+//     '^/wxpay': '/'
+//     }
+//   }))
 
-  app.use(proxy('/trans', {
-    target: `${host}/${service}trans`,
-    secure: false,
-    changeOrigin: true,
-    pathRewrite: {
-    '^/trans': '/'
-    }
-  }))
-}
\ No newline at end of file
+//   app.use(proxy('/trans', {
+//     target: `${host}/${service}trans`,
+//     secure: false,
+//     changeOrigin: true,
+//     pathRewrite: {
+//     '^/trans': '/'
+//     }
+//   }))
+// }
\ No newline at end of file

--
Gitblit v1.8.0