fix: 版本信息添加开发模式和生成模式显示

This commit is contained in:
LXP 2026-08-24 18:30:05 +08:00
parent 184a383b42
commit 9ece3c7c48
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@ export const NETWORK_SETTING_DISABLE_CONFIRM_MESSAGE =
let _versionLabelCache: string | null = null;
const _versionLabelPromise = Promise.all([getVersionName(), getVersionCode(), getChannelId()])
.then(([name, code, channel]) => {
_versionLabelCache = `v${name}.${channel}.${code}`;
.then(([name, code, channel]) => {
_versionLabelCache = `v${name}.${channel}.${__DEV__ ? 'debug': 'release'}.${code}`;
return _versionLabelCache;
})
.catch(() => '');