feat: 修复环境的问题

This commit is contained in:
2026-01-06 11:46:15 +08:00
parent ae2fb40d72
commit 972c777177
8 changed files with 44 additions and 12 deletions

View File

@@ -12,7 +12,7 @@ import rawConfigs from '../../client-configs.json' with { type: 'json' };
export const CLIENT_CONFIGS = rawConfigs;
// 获取当前用户端配置
export const getCurrentConfig = () => CLIENT_CONFIGS.duohua;
export const getCurrentConfig = () => CLIENT_CONFIGS.zhinian;
export const clientId = getCurrentConfig().clientId;
export const appId = getCurrentConfig().appId;
@@ -42,4 +42,4 @@ export const currentClientType = () => {
};
// 环境配置 - 智念客户端使用测试环境,其他客户端使用生产环境
export const isProd = currentClientType() !== ClientType.ZHINIAN;
export const isZhiNian = currentClientType() === ClientType.ZHINIAN;