From 277ef1f7f45ffe9c91194315dbcc2508ae008668 Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Wed, 11 Oct 2023 16:22:30 +0800
Subject: [PATCH] 环境变量配置修改

---
 vite.config.ts |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/vite.config.ts b/vite.config.ts
index 94babad..a754a27 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -16,7 +16,7 @@
 // https://vitejs.dev/config/
 export default defineConfig(({ command, mode }) => {
   // 添加第三个参数空字符串时 '' ,会在env中包含所有环境变量;反之,只包含.env文件中配置的环境变量
-  const env = loadEnv(command, process.cwd() + '/env')
+  const env = loadEnv(mode, process.cwd() + '/env')
   // eslint-disable-next-line no-useless-escape
   return {
     plugins: [

--
Gitblit v1.9.3