From fac27acb9b453cfe9f66fdc4ef510d0c615d1e8f Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Sat, 15 Nov 2025 18:33:57 +0800
Subject: [PATCH] feat: 配置环境变量
---
src/utils/common/index.js | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/src/utils/common/index.js b/src/utils/common/index.js
index c796b03..9e1f8ff 100644
--- a/src/utils/common/index.js
+++ b/src/utils/common/index.js
@@ -49,8 +49,7 @@
}
}
export function getEnvObj() {
- const envName = JSON.parse(__APP_ENV__?.UNI_CUSTOM_DEFINE||null)?.ENV_NAME
- return configEnv[envName || import.meta.env.VITE_APP_ENV] || {}
+ return configEnv[__APP_ENV__?.ENV_NAME] || {}
}
export function getWebViewUrl (targetUrl, otherParams) {
const userStore = useUserStore()
--
Gitblit v1.9.3