From 702a16ac70946da61a1dd4ff1bd731fd5eed8771 Mon Sep 17 00:00:00 2001 From: sin <2943460818@qq.com> Date: Tue, 9 Apr 2019 21:08:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20order=20=E6=A8=A1=E5=9D=97?= =?UTF-8?q?=E7=AB=AF=E5=8F=A3=E5=8F=B7=E4=B8=BA=2088?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin-web/config/proxy/proxy.dev.js | 2 +- admin-web/config/proxy/proxy.prod.js | 21 +++++++++++++++++---- 2 files changed, 18 insertions(+), 5 deletions(-) diff --git a/admin-web/config/proxy/proxy.dev.js b/admin-web/config/proxy/proxy.dev.js index 9e6a576cf..bb5b0c986 100644 --- a/admin-web/config/proxy/proxy.dev.js +++ b/admin-web/config/proxy/proxy.dev.js @@ -15,7 +15,7 @@ export default { }, '/order-api/': { // target: 'http://180.167.213.26:18084/', - target: 'http://127.0.0.1:18084/', + target: 'http://127.0.0.1:18088/', changeOrigin: true, pathRewrite: {}, }, diff --git a/admin-web/config/proxy/proxy.prod.js b/admin-web/config/proxy/proxy.prod.js index 968def624..f8cef2eee 100644 --- a/admin-web/config/proxy/proxy.prod.js +++ b/admin-web/config/proxy/proxy.prod.js @@ -2,11 +2,24 @@ export default { '/admin-api/': { - target: 'http://180.167.213.26:18083/', + target: 'http://api.shop.iocoder.cn:18099/admin-api', changeOrigin: true, - pathRewrite: { - '^/admin-api': `/admin-web/admin-api`, - }, + pathRewrite: {}, + }, + '/order-api/': { + target: 'http://api.shop.iocoder.cn:18099/order-api', + changeOrigin: true, + pathRewrite: {}, + }, + '/pay-api/': { + target: 'http://api.shop.iocoder.cn:18099/pay-api', + changeOrigin: true, + pathRewrite: {}, + }, + '/user-api/': { + target: 'http://api.shop.iocoder.cn:18099/user-api', + changeOrigin: true, + pathRewrite: {}, }, '/server/api/': { target: 'https://preview.pro.ant.design/',