🐎 ci(版本号):
构建版本号/分支信息
This commit is contained in:
@@ -18,6 +18,11 @@ export default () => {
|
||||
// 用户信息
|
||||
const { getSelfUserInfo, getAdminUserInfo } = useLogin();
|
||||
const { adminUserInfo } = useSelector(state => state.userInfo);
|
||||
|
||||
const [current_version,setCurrent_version] = useState(CURRENT_VERSION)
|
||||
const [current_githash,setCurrent_githash] = useState(CURRENT_GITHASH)
|
||||
const [current_env,setCurrent_env] = useState(CURRENT_ENV)
|
||||
|
||||
useEffect(() => {
|
||||
// getSelfUserInfo().then().catch(() => {
|
||||
// alert.none("授权失败,请授权后再使用");
|
||||
@@ -65,7 +70,8 @@ export default () => {
|
||||
<Main />
|
||||
{/* {(adminUserInfo as any)?.authentication_status==1&&<Modal data={adminUserInfo}/>} */}
|
||||
{/* 测试暂时添加 */}
|
||||
<View style={{ fontSize: '26rpx', textAlign: 'center' }}>{BASE_URL}</View>
|
||||
<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>}
|
||||
{!adminUserInfo?.is_authorize_name && <View onClick={handleAuth} className={styles["auth-suspension"]}></View>}
|
||||
</View>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user