From b71b6a0ca784f88ac656dc9ee7357453f09676b8 Mon Sep 17 00:00:00 2001
From: zhoushihao <zsh19950802@163.com>
Date: 星期一, 22 四月 2024 08:36:41 +0800
Subject: [PATCH] 1、提交前端打包 解决打包过程中因空格导致打包失败
---
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 fb950f2..e0a49a0 100644
--- a/UI-Project/vite.config.js
+++ b/UI-Project/vite.config.js
@@ -22,17 +22,17 @@
https: false,
proxy: {
'/api': {
- target: 'http://localhost:8081/',
+ target: 'http://10.153.19.150:88/',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '/'),
},
- '/api2': {
- target: 'http://localhost:8081/mesModuleTools',
- changeOrigin: true,
- pathRewrite: {
- '^/api2': '',
- },
- },
+ // '/api2': {
+ // target: 'http://localhost:8085/mesModuleTools',
+ // changeOrigin: true,
+ // pathRewrite: {
+ // '^/api2': '',
+ // },
+ // },
},
},
configureServer: ({ middlewares }) => {
--
Gitblit v1.8.0