From b2fab66f80d7c5e7b290f5c105ca85545babf494 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Tue, 21 Oct 2025 22:38:25 +0800
Subject: [PATCH] feat: 代码提示被影响修复
---
build/config/proxy.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/build/config/proxy.js b/build/config/proxy.js
index 25fada2..3aca368 100644
--- a/build/config/proxy.js
+++ b/build/config/proxy.js
@@ -16,7 +16,7 @@
if (!JSON.parse(VITE_APP_PROXY)) return undefined
const proxy = {
[VITE_API_PREFIX]: {
- target: configEnv[envName].VITE_API_BASE_URL,
+ target: configEnv?.[envName]?.VITE_API_BASE_URL,
changeOrigin: true,
rewrite: path => path.replace(new RegExp(`^${VITE_API_PREFIX}`), ''),
},
--
Gitblit v1.9.3