From 151d907fc6521e0fad7ab53382f5309ed49c122d Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 01 Nov 2024 11:21:34 +0800
Subject: [PATCH] 代理配置调整
---
vite.config.js | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/vite.config.js b/vite.config.js
index 3ddbd7c..81478cf 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2024-10-25 10:56:27
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-10-31 18:23:13
+ * @LastEditTime: 2024-11-01 11:15:36
* @FilePath: \bigScreen\vite.config.js
* @Description:
*
@@ -81,6 +81,13 @@
https: true,
host: '0.0.0.0',
proxy: {
+ '/zhyq/mx': {
+ // target: 'http://localhost',
+ target: 'https://wrj.shuixiongit.com/zhyq/mx',
+ changeOrigin: true,
+ rewrite: path => path.replace(/^\/zhyq\/mx/, ''),
+ },
+
'/zhyqapi': {
// target: 'http://localhost',
target: 'https://wrj.shuixiongit.com/zhyqapi',
--
Gitblit v1.9.3