From 3fc27febccd04e2fcffbd2cdd16d2daafd0b3ca3 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sat, 11 Oct 2025 17:23:27 +0800
Subject: [PATCH] feat:首页地图相关调整
---
build/config/proxy.js | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/build/config/proxy.js b/build/config/proxy.js
index a708a9b..9c31850 100644
--- a/build/config/proxy.js
+++ b/build/config/proxy.js
@@ -9,15 +9,15 @@
* 2025-09-28 09:31:16
*/
export const createViteProxy = (env) => {
- const { VITE_APP_PROXY, VITE_API_PREFIX, VITE_API_BASE_URL } = env;
+ const { VITE_APP_PROXY, VITE_API_PREFIX, VITE_API_BASE_URL } = env
// 不使用代理直接返回
- if (!JSON.parse(VITE_APP_PROXY)) return undefined;
+ if (!JSON.parse(VITE_APP_PROXY)) return undefined
const proxy = {
[VITE_API_PREFIX]: {
target: VITE_API_BASE_URL,
changeOrigin: true,
rewrite: path => path.replace(new RegExp(`^${VITE_API_PREFIX}`), ''),
},
- };
- return proxy;
-};
+ }
+ return proxy
+}
--
Gitblit v1.9.3