From 8022f7036945b75f82f2dfc43055623f81ed98f6 Mon Sep 17 00:00:00 2001 From: yxh <172933527@qq.com> Date: 星期五, 23 五月 2025 22:42:56 +0800 Subject: [PATCH] yxh --- vue.config.js | 20 ++++++++++++-------- 1 files changed, 12 insertions(+), 8 deletions(-) diff --git a/vue.config.js b/vue.config.js index 34490e4..a8aeb72 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 // 绔彛 @@ -33,11 +33,14 @@ proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://localhost:8080`, - // target:`http://slb.hospitalstar.com:9091`, - // target1:`http://192.168.2.3:8080`, + 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: (path) => path.replace(/^\/dev-api/, '') + pathRewrite: { + ['^' + process.env.VUE_APP_BASE_API]: '' + } } }, disableHostCheck: true @@ -47,6 +50,7 @@ resolve: { alias: { '@': resolve('src') + } } }, @@ -78,7 +82,7 @@ .plugin('ScriptExtHtmlWebpackPlugin') .after('html') .use('script-ext-html-webpack-plugin', [{ - // `runtime` must same as runtimeChunk name. default is `runtime` + // `runtime` must same as runtimeChunk name. default is `runtime` inline: /runtime\..*\.js$/ }]) .end() @@ -108,8 +112,8 @@ }) config.optimization.runtimeChunk('single'), { - from: path.resolve(__dirname, './public/robots.txt'), //闃茬埇铏枃浠� - to: './' //鍒版牴鐩綍涓� + from: path.resolve(__dirname, './public/robots.txt'), //闃茬埇铏枃浠� + to: './' //鍒版牴鐩綍涓� } } ) -- Gitblit v1.9.3