From 432f12e7e5804e5ccbf6750694659f0b90d3c1c3 Mon Sep 17 00:00:00 2001
From: zhang <z1415143022@163.com>
Date: 星期五, 18 四月 2025 18:51:16 +0800
Subject: [PATCH] 能源损失分析页面-损失比例bug修改

---
 zhitan-vue/vite.config.js |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/zhitan-vue/vite.config.js b/zhitan-vue/vite.config.js
index a4c5dbc..d7726c7 100644
--- a/zhitan-vue/vite.config.js
+++ b/zhitan-vue/vite.config.js
@@ -33,9 +33,14 @@
       proxy: {
         // https://cn.vitejs.dev/config/#server-proxy
         "/dev-api": {
-          target: "http://localhost",
+          target: "http://localhost:8080",
           changeOrigin: true,
-          rewrite: (p) => p.replace(/^\/dev-api/, ""),
+          rewrite: (p) => p.replace(/^\/dev-api/, "/"),
+        },
+        "/prod-api": {
+          target: "http://localhost:8080",
+          changeOrigin: true,
+          secure: true,
         },
       },
     },

--
Gitblit v1.9.3