From 72dc0bc085496aeb2c3936a4139546fa3cf4e1d1 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期二, 08 七月 2025 13:41:27 +0800 Subject: [PATCH] 11 --- vue.config.js | 22 +++++++--------------- 1 files changed, 7 insertions(+), 15 deletions(-) diff --git a/vue.config.js b/vue.config.js index a0f5de9..b845512 100644 --- a/vue.config.js +++ b/vue.config.js @@ -5,7 +5,7 @@ return path.join(__dirname, dir) } -const name = process.env.VUE_APP_TITLE || '鑻ヤ緷绠$悊绯荤粺' // 缃戦〉鏍囬 +const name = process.env.VUE_APP_TITLE || '娴欐睙鐪丱PO鏁板瓧鍖栫鐞嗙郴缁�' // 缃戦〉鏍囬 const port = process.env.port || process.env.npm_config_port || 80 // 绔彛 @@ -25,30 +25,22 @@ lintOnSave: process.env.NODE_ENV === 'development', // 濡傛灉浣犱笉闇�瑕佺敓浜х幆澧冪殑 source map锛屽彲浠ュ皢鍏惰缃负 false 浠ュ姞閫熺敓浜х幆澧冩瀯寤恒�� productionSourceMap: false, - // webpack-dev-server 鐩稿叧閰嶇疆 + // webpack-dev-server 鐩稿叧閰嶇疆w devServer: { host: '0.0.0.0', port: port, 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.1.10: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