v3.8.1发布,上传前端代码

This commit is contained in:
JEECG
2025-06-25 16:04:02 +08:00
parent 3d414aaec8
commit 0148f45979
120 changed files with 4783 additions and 486 deletions

View File

@@ -0,0 +1,18 @@
// 不能直接使用 process.env会报错
export const $ps = process;
export const isDev = !!$ps.env.VITE_DEV_SERVER_URL;
export const $env = getEnv();
function getEnv() {
if (isDev) {
return $ps.env;
}
// 非开发环境,从 JSON 文件中获取环境变量
const env = require('./env.json');
return {
...$ps.env,
...env,
};
}