From 53187450526b66ca4a7736c3ed84652fbb0bce4c Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期二, 28 五月 2024 10:17:57 +0800
Subject: [PATCH] 添加前端需要用的方法

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

diff --git a/UI-Project/vite.config.js b/UI-Project/vite.config.js
index c0255a0..b93f5ee 100644
--- a/UI-Project/vite.config.js
+++ b/UI-Project/vite.config.js
@@ -22,17 +22,17 @@
     https: false,
     proxy: {
       '/api': {
-        target: 'http://localhost:8080/mesModuleTools',
+        target: 'http://127.0.0.1:88/',
         changeOrigin: true,
         rewrite: (path) => path.replace(/^\/api/, '/'),
       },
-      '/api2': {
-        target: 'http://localhost:8085/mesModuleTools',
-        changeOrigin: true,
-        pathRewrite: {
-          '^/api2': '',
-        },
-      },
+      // '/api2': {
+      //   target: 'http://localhost:8085/mesModuleTools',
+      //   changeOrigin: true,
+      //   pathRewrite: {
+      //     '^/api2': '',
+      //   },
+      // },
     },
   },
   configureServer: ({ middlewares }) => {

--
Gitblit v1.8.0