罗广辉
2025-10-23 6d009f08368f93713c1ebeca6acde4163042faa4
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()