From f41e347a34d2859c149c59691bda6d179b209d44 Mon Sep 17 00:00:00 2001 From: yxl <584911253@qq.com> Date: 星期三, 22 一月 2025 17:42:53 +0800 Subject: [PATCH] 最新修改 --- vue.config.js | 23 +++++++++++++++++++++-- 1 files changed, 21 insertions(+), 2 deletions(-) diff --git a/vue.config.js b/vue.config.js index 70cda5d..2a781ef 100644 --- a/vue.config.js +++ b/vue.config.js @@ -6,7 +6,25 @@ devServer: { host: "0.0.0.0", //鎸囧畾瑕佷娇鐢ㄧ殑 host port: 12315, //鎸囧畾绔彛鍙蜂互渚﹀惉 - hotOnly: false //鍚敤鐑ā鍧楁浛鎹紝鑰屾棤闇�椤甸潰鍒锋柊浣滀负鏋勫缓澶辫触鏃剁殑鍥為��銆� + hotOnly: false, //鍚敤鐑ā鍧楁浛鎹紝鑰屾棤闇�椤甸潰鍒锋柊浣滀负鏋勫缓澶辫触鏃剁殑鍥為��銆� + open: true, + proxy: { + "/dev-api": { + target: 'http://103.135.160.14:7800', + // target: 'http://103.135.160.14:7777', + changeOrigin: true, + pathRewrite: { + '^/dev-api': '' + } + }, + "/data-api": { + target: 'http://103.135.160.14:9038/', + changeOrigin: true, + pathRewrite: { + '^/data-api': '' + } + }, + }, }, @@ -34,6 +52,7 @@ assetFilter: function (assetFilename) { return assetFilename.endsWith(".js") || assetFilename.endsWith(".css"); } - } + }, + devtool:"source map" } }; -- Gitblit v1.9.3