fix: 版本信息添加开发模式和生成模式显示
This commit is contained in:
parent
184a383b42
commit
9ece3c7c48
|
|
@ -16,7 +16,7 @@ export const NETWORK_SETTING_DISABLE_CONFIRM_MESSAGE =
|
||||||
let _versionLabelCache: string | null = null;
|
let _versionLabelCache: string | null = null;
|
||||||
const _versionLabelPromise = Promise.all([getVersionName(), getVersionCode(), getChannelId()])
|
const _versionLabelPromise = Promise.all([getVersionName(), getVersionCode(), getChannelId()])
|
||||||
.then(([name, code, channel]) => {
|
.then(([name, code, channel]) => {
|
||||||
_versionLabelCache = `v${name}.${channel}.${code}`;
|
_versionLabelCache = `v${name}.${channel}.${__DEV__ ? 'debug': 'release'}.${code}`;
|
||||||
return _versionLabelCache;
|
return _versionLabelCache;
|
||||||
})
|
})
|
||||||
.catch(() => '');
|
.catch(() => '');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue