From 53119e36424b149dbc4318e63ba26f1e5bdcb38f Mon Sep 17 00:00:00 2001 From: zhaowei <zhaowei> Date: 星期二, 21 一月 2025 10:31:04 +0800 Subject: [PATCH] 调整回原先的读取环境文件配置接口地址 --- vue.config.js | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/vue.config.js b/vue.config.js index a0a2ee1..07c53ce 100644 --- a/vue.config.js +++ b/vue.config.js @@ -87,6 +87,7 @@ devServer: { port: 3000, + open:true, // hot: true, // disableHostCheck: true, // overlay: { @@ -107,13 +108,10 @@ },*/ /* 娉ㄦ剰锛歫eecgboot鍓嶇鍋氫簡鏀归�狅紝姝ゅ涓嶉渶瑕侀厤缃法鍩熷拰鍚庡彴鎺ュ彛锛堝彧闇�瑕佹敼.env鐩稿叧閰嶇疆鏂囦欢鍗冲彲锛� issues/3462 寰堝浜烘澶勫仛浜嗛厤缃紝瀵艰嚧鍒锋柊鍓嶇404闂锛岃涓�瀹氭敞鎰�*/ - '/api': { - target: 'http://127.0.0.1:9998', + '/jeecg-boot': { + target: 'http://localhost:8080', // 璇锋眰鏈湴 闇�瑕乯eecg-boot鍚庡彴椤圭洰 ws: false, - changeOrigin: true, - pathRewrite: { - '^/api': '' - } + changeOrigin: true } } }, -- Gitblit v1.9.3