feat: 修复环境的问题
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user