From cb317ade91a71a6c55f776f7a69c4cd87f4ea0fa Mon Sep 17 00:00:00 2001 From: VVT789 <sdxt_0802@163.com> Date: 星期五, 21 三月 2025 15:44:59 +0800 Subject: [PATCH] 能耗统计,重点设备能耗,工序能耗优化 --- zhitan-vue/vite.config.js | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/zhitan-vue/vite.config.js b/zhitan-vue/vite.config.js index f1ee7d7..a4c5dbc 100644 --- a/zhitan-vue/vite.config.js +++ b/zhitan-vue/vite.config.js @@ -4,7 +4,9 @@ // https://vitejs.dev/config/ export default defineConfig(({ mode, command }) => { + mode = "production" const env = loadEnv(mode, process.cwd()) + console.log(mode, "==========env") const { VITE_APP_ENV } = env return { // 閮ㄧ讲鐢熶骇鐜鍜屽紑鍙戠幆澧冧笅鐨刄RL銆� @@ -31,7 +33,7 @@ proxy: { // https://cn.vitejs.dev/config/#server-proxy "/dev-api": { - target: "http://139.159.201.118:8201", + target: "http://localhost", changeOrigin: true, rewrite: (p) => p.replace(/^\/dev-api/, ""), }, -- Gitblit v1.9.3