🐞 fix(版本号): 显示版本号信息

This commit is contained in:
xuan 2022-12-29 18:12:22 +08:00
parent 1d8b83c1e7
commit b37006724b

View File

@ -246,8 +246,8 @@ const User = () => {
<UserInfo /> <UserInfo />
{/* 测试暂时添加 */} {/* 测试暂时添加 */}
{CURRENT_ENV === 'development' && <View style={{ fontSize: '26rpx', color: '#707070', textAlign: 'center' }}>{CURRENT_VERSION}</View>} {CURRENT_ENV !== 'prod' && <View style={{ fontSize: '26rpx', color: '#707070', textAlign: 'center' }}>{CURRENT_VERSION}</View>}
{CURRENT_ENV === 'development' && <View style={{ fontSize: '26rpx', color: '#707070', textAlign: 'center' }}>{BASE_URL}</View>} {CURRENT_ENV !== 'prod' && <View style={{ fontSize: '26rpx', color: '#707070', textAlign: 'center' }}>{BASE_URL}</View>}
</View> </View>
</> </>
) )