From 94f79d602d7fd57ca0f656898bb8f2a1294e9bb0 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Thu, 23 Oct 2025 17:06:44 +0800
Subject: [PATCH] Merge branch 'lgh/喊话和广播'
---
vite.config.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/vite.config.js b/vite.config.js
index a9bdfac..4a556cc 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -13,7 +13,7 @@
const { UNI_PLATFORM,UNI_CUSTOM_DEFINE } = process.env
const ENV_NAME = UNI_CUSTOM_DEFINE && JSON.parse(UNI_CUSTOM_DEFINE)?.ENV_NAME
console.log("平台 -> ", UNI_PLATFORM) // 得到 mp-weixin, h5, app 等
- console.log("环境 -> ", ENV_NAME) // 得到 development,test 等
+ console.log("环境 -> ", ENV_NAME || 'development') // 得到 development,test 等
const env = loadEnv(mode, fileURLToPath(new URL("./env", import.meta.url)))
// console.log("环境变量 env -> ", env)
--
Gitblit v1.9.3