From f397a6cfd118ae36022576374ed4a1fd9e15448d Mon Sep 17 00:00:00 2001
From: zhangwei <1504152376@qq.com>
Date: 星期四, 26 六月 2025 17:13:05 +0800
Subject: [PATCH] '登录注册完善'

---
 vite.config.ts |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/vite.config.ts b/vite.config.ts
index 1d1b01a..0fc8d03 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -24,7 +24,14 @@
       port: VITE_PORT,
       host: "0.0.0.0",
       // 鏈湴璺ㄥ煙浠g悊 https://cn.vitejs.dev/config/server-options.html#server-proxy
-      proxy: {},
+      proxy: {
+        "/api": {
+          // 杩欓噷濉啓鍚庣鍦板潃
+          target: "http://192.168.0.36:5005",
+          changeOrigin: true,
+          rewrite: path => path.replace(/^\/api/, "")
+        }
+      },
       // 棰勭儹鏂囦欢浠ユ彁鍓嶈浆鎹㈠拰缂撳瓨缁撴灉锛岄檷浣庡惎鍔ㄦ湡闂寸殑鍒濆椤甸潰鍔犺浇鏃堕暱骞堕槻姝㈣浆鎹㈢�戝竷
       warmup: {
         clientFiles: ["./index.html", "./src/{views,components}/*"]

--
Gitblit v1.9.1