From 4cb614975ad7e3d96421ed40aa9709e24f8a703d Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Fri, 24 Oct 2025 11:44:46 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
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