From 3bdd4cddba3837c20a4209a27564e73cabaa0392 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Tue, 21 Oct 2025 16:31:32 +0800
Subject: [PATCH] feat: 打包环境调整

---
 src/utils/common/index.js |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/utils/common/index.js b/src/utils/common/index.js
index 8d332d7..91eec2a 100644
--- a/src/utils/common/index.js
+++ b/src/utils/common/index.js
@@ -10,6 +10,7 @@
  */
 // 小程序更新检测
 import { useUserStore } from "@/store/index.js"
+import configEnv from "@/config/env.js";
 
 export function mpUpdate () {
   const updateManager = uni.getUpdateManager()
@@ -39,9 +40,12 @@
   })
 }
 
+export function getEnvObj() {
+  return configEnv?.[process?.env?.ENV_NAME] || {}
+}
 export function getWebViewUrl (targetUrl, otherParams) {
   const userStore = useUserStore()
-  const url = "https://wrj.shuixiongit.com/drone-app-web-view/#/webViewWrapper"
+  const url = getEnvObj().VITE_APP_WEBVIEW_URL
   // 1. 处理用户参数
   const userParams = userStore?.userInfo ? JSON.stringify(userStore.userInfo) : '{}'
   // 2. 构建查询参数字符串

--
Gitblit v1.9.3