From 8dd7af51db4cf768fbf92002b5b62f7fb9d1c929 Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期二, 06 五月 2025 15:04:59 +0800
Subject: [PATCH] refactor(zhitan):调整模型代码和优化能源统计功能

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

diff --git a/zhitan-vue/vite.config.js b/zhitan-vue/vite.config.js
index f1a1f6e..68e341e 100644
--- a/zhitan-vue/vite.config.js
+++ b/zhitan-vue/vite.config.js
@@ -35,7 +35,12 @@
         "/dev-api": {
           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