From 309b2dcf1c0e0072acdd8eb56c87f7edc2d3b847 Mon Sep 17 00:00:00 2001 From: lmj <3407000732@qq.com> Date: Wed, 7 Sep 2022 16:56:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 6 ++++++ vue.config.js | 22 +++++++++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/.env.development b/.env.development index ced17fe2..83f5ce26 100644 --- a/.env.development +++ b/.env.development @@ -9,6 +9,12 @@ VUE_APP_BASE_API = '/systemapi' # BOE管理系统/开发环境 VUE_APP_BOE_BASE_API = '/uboeApi' +# 资源位的api +VUE_APP_CESOURCE_BASE_API = '/subgroupApi' + +# 事件的api +VUE_APP_STAT_BASE_API = '/statApi' + # BOE系统网址 VUE_APP_BOE_WEB_URL = 'https://u.boe.com' diff --git a/vue.config.js b/vue.config.js index 8a9cdf0f..1a250c86 100644 --- a/vue.config.js +++ b/vue.config.js @@ -114,7 +114,7 @@ module.exports = { proxy: { '/systemapi': { // 目标代理服务器地址 - target: 'http://localhost:9090', + target: 'http://192.168.0.10:9090', changeOrigin: true, logLevel:'debug', secure: false, @@ -131,6 +131,26 @@ module.exports = { '^/uboeApi': '/api' } }, + '/statApi': { + // 目标代理服务器地址 + target: 'http://192.168.0.107:9080', + changeOrigin: true, + logLevel:'debug', + secure: false, + pathRewrite: { + '^/statApi': '' + } + }, + '/subgroupApi': { + // 目标代理服务器地址 + target: 'http://192.168.0.107:9081', + changeOrigin: true, + logLevel:'debug', + secure: false, + pathRewrite: { + '^/subgroupApi': '' + } + }, }, }, }