From 36990e3fc35d1dcf341895b65cba19a0d805f258 Mon Sep 17 00:00:00 2001
From: ustcyc <yincun@163.com>
Date: 星期三, 16 四月 2025 20:13:00 +0800
Subject: [PATCH] Merge branch 'master' of https://github.com/zhitan-cloud/zhitan-ems

---
 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..b9d01a0 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: "https://demo-ems.zhitancloud.com",
           changeOrigin: true,
-          rewrite: (p) => p.replace(/^\/dev-api/, ""),
+          rewrite: (p) => p.replace(/^\/dev-api/, "/prod-api"),
+        },
+        "/prod-api": {
+          target: "https://demo-ems.zhitancloud.com",
+          changeOrigin: true,
+          secure: true,
         },
       },
     },

--
Gitblit v1.9.3