From 78aa1b2bde9d8bb28004bc51dd1fb68e29f591ab Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Mon, 03 Nov 2025 15:36:33 +0800
Subject: [PATCH] feat: 待执行显示集群调度信息
---
src/utils/common/index.js | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/utils/common/index.js b/src/utils/common/index.js
index 1c2bd62..0cb72d1 100644
--- a/src/utils/common/index.js
+++ b/src/utils/common/index.js
@@ -11,7 +11,7 @@
// 小程序更新检测
import { useUserStore } from "@/store/index.js"
import configEnv from "@/config/env.js";
-import process from "node:process"
+import process from "node:process";
export function mpUpdate () {
const updateManager = uni.getUpdateManager()
@@ -42,7 +42,8 @@
}
export function getEnvObj() {
- return configEnv?.[process?.env?.ENV_NAME] || {}
+ const envName = JSON.parse(__APP_ENV__?.UNI_CUSTOM_DEFINE||null)?.ENV_NAME
+ return configEnv[envName || import.meta.env.VITE_APP_ENV] || {}
}
export function getWebViewUrl (targetUrl, otherParams) {
const userStore = useUserStore()
--
Gitblit v1.9.3