From f2251d2f5c47fbe00a819f02f8d8c7ed70e60aaf Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Mon, 20 Oct 2025 22:08:33 +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