✨ feat(我的): 添加版本信息显示
This commit is contained in:
@@ -17,6 +17,8 @@ import LayoutBlock from '@/components/layoutBlock'
|
||||
import IconCard from '@/components/iconCard'
|
||||
import type { IconNames } from '@/components/iconfont/iconfont'
|
||||
import useUserInfo from '@/use/useUserInfo'
|
||||
import { useSelector } from '@/reducers/hooks'
|
||||
import { BASE_URL } from '@/common/constant'
|
||||
|
||||
// 用户头像
|
||||
const UserAvatar = ({ src }: { src?: string }) => {
|
||||
@@ -242,6 +244,10 @@ const User = () => {
|
||||
<>
|
||||
<View className={styles.main}>
|
||||
<UserInfo />
|
||||
|
||||
{/* 测试暂时添加 */}
|
||||
{CURRENT_ENV === 'development' && <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>}
|
||||
</View>
|
||||
</>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user