From 71d8dff149004da5a906023c5fb53a7a559b131a Mon Sep 17 00:00:00 2001
From: zhoushihao <zsh19950802@163.com>
Date: 星期三, 27 三月 2024 09:24:10 +0800
Subject: [PATCH] fixbug:前端启动报错:无效引用删除

---
 UI-Project/vite.config.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/UI-Project/vite.config.js b/UI-Project/vite.config.js
index c5cc368..b0685b2 100644
--- a/UI-Project/vite.config.js
+++ b/UI-Project/vite.config.js
@@ -33,7 +33,7 @@
       '/api2': {
         target: 'localhost:8080/mesModuleTools',
         changeOrigin: true,
-        rewrite: (path) => path.replace(/^\/api2/, ""),
+        rewrite: (path) => path.replace(/^\/api2/, "mesModuleTools"),
       },
     }
   }

--
Gitblit v1.8.0