From 22fb0256c7b125736c23269b1ad2e1906d6332a2 Mon Sep 17 00:00:00 2001 From: nisen Date: Fri, 25 Aug 2023 10:36:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vue.config.js | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/vue.config.js b/vue.config.js index a95e9a61..4bfcc671 100644 --- a/vue.config.js +++ b/vue.config.js @@ -128,12 +128,13 @@ module.exports = { }, '/systemapi': { // 目标代理服务器地址 - target: 'http://127.0.0.1:9090', + // target: 'http://127.0.0.1:9090', + target: 'https://u-pre.boe.com', changeOrigin: true, logLevel:'debug', secure: false, pathRewrite: { - '^/systemapi': '' + // '^/systemapi': '' } }, '/uboeApi': { @@ -156,22 +157,24 @@ module.exports = { }, '/statApi': { // 目标代理服务器地址 - target: 'http://127.0.0.1:9080', + // target: 'http://127.0.0.1:9080', + target: 'https://u-pre.boe.com', changeOrigin: true, logLevel:'debug', secure: false, pathRewrite: { - '^/statApi': '' + // '^/statApi': '' } }, '/socialApi': { // 目标代理服务器地址 - target: 'http://127.0.0.1:9081', + // target: 'http://127.0.0.1:9081', + target: 'https://u-pre.boe.com', changeOrigin: true, logLevel:'debug', secure: false, pathRewrite: { - '^/socialApi': '' + // '^/socialApi': '' } }, '/report': { @@ -183,13 +186,19 @@ module.exports = { '^/report': '/report' } }, + '/infrasApi': { + // 目标代理服务器地址 + target: 'https://u-pre.boe.com', + changeOrigin: true, + secure: false, + }, }, }, - + css: { extract: { ignoreOrder: true } } - + }