From 46f4b220c91fb982d1680122ca5070d52eea48a9 Mon Sep 17 00:00:00 2001 From: sin <2943460818@qq.com> Date: Fri, 1 Mar 2019 14:59:36 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=20dev=20=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E4=BB=A3=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin-web/config/config.js | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/admin-web/config/config.js b/admin-web/config/config.js index 226d448e..8f0edba4 100644 --- a/admin-web/config/config.js +++ b/admin-web/config/config.js @@ -79,13 +79,18 @@ export default { '@antv/data-set': 'DataSet', bizcharts: 'BizCharts', }, - // proxy: { - // '/server/api/': { - // target: 'https://preview.pro.ant.design/', - // changeOrigin: true, - // pathRewrite: { '^/server': '' }, - // }, - // }, + proxy: { + '/admin-api/': { + target: 'http://180.167.213.26:18083/', + changeOrigin: true, + pathRewrite: { '^/admin-api': '' }, + }, + '/server/api/': { + target: 'https://preview.pro.ant.design/', + changeOrigin: true, + pathRewrite: { '^/server': '' }, + }, + }, ignoreMomentLocale: true, lessLoaderOptions: { javascriptEnabled: true,