mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-23 05:40:20 +08:00
修复 不能将类型“string | undefined”分配给类型“string”的问题
This commit is contained in:
parent
793e740c32
commit
134b63848a
@ -9,7 +9,7 @@ export interface ViteEnv {
|
||||
export function loadEnv(): ViteEnv {
|
||||
const env = process.env.NODE_ENV;
|
||||
const ret: any = {};
|
||||
const envList = [`.env.${env}.local`, `.env.${env}`, '.env.local', '.env', ,];
|
||||
const envList = [`.env.${env}.local`, `.env.${env}`, '.env.local', '.env', ];
|
||||
envList.forEach((e) => {
|
||||
dotenv.config({ path: e });
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user