From 0ac2d43fce4d74f6eea5a51a2e16af4e6a536c7c Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期三, 14 八月 2024 14:19:24 +0800 Subject: [PATCH] 11 --- vue.config.js | 18 +++++------------- 1 files changed, 5 insertions(+), 13 deletions(-) diff --git a/vue.config.js b/vue.config.js index a0f5de9..10254cf 100644 --- a/vue.config.js +++ b/vue.config.js @@ -32,23 +32,15 @@ open: true, proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy - [process.env.VUE_APP_BASE_API]: { - // target:`http://localhost:8080`, - //target:`http://116.62.18.175:8080`, - target:`http://192.168.1.4:8086`, - // target: `https://slb.hospitalstar.com:9093`, + [process.env.VUE_APP_BASE_API]: { + target:`http://localhost:8080`, + // target:`http://192.168.2.8:8080`, + // target:`http://116.62.18.175:8080`, + // target:`https://slb.hospitalstar.com:9093`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: '' } - }, - //褰損df鍜屾暟鎹帴鍙d笉鍦ㄥ悓涓�涓姹傚湴鍧�涓嬫椂,涓簆df棰勮杩藉姞涓�涓唬鐞� - '/pdf': { - target: 'http://192.168.1.4/pdf/data', - changOrigin: true, - pathRewrite: { - '^/pdf': '' - } } }, disableHostCheck: true -- Gitblit v1.9.3