我的页面点击问题
This commit is contained in:
parent
ac773b7268
commit
ddda63c1b0
@ -25,11 +25,12 @@ export default () => {
|
|||||||
const { getSelfUserInfo } = useLogin();
|
const { getSelfUserInfo } = useLogin();
|
||||||
const { adminUserInfo } = useSelector(state => state.userInfo);
|
const { adminUserInfo } = useSelector(state => state.userInfo);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getSelfUserInfo().then().catch(() => {
|
// getSelfUserInfo().then().catch(() => {
|
||||||
alert.none("授权失败,请授权后再使用");
|
// alert.none("授权失败,请授权后再使用");
|
||||||
});
|
// });
|
||||||
}, []);
|
}, []);
|
||||||
const handleAuth = async () => {
|
const handleAuth = async () => {
|
||||||
|
console.log('授权面版')
|
||||||
getSelfUserInfo().then().catch(() => {
|
getSelfUserInfo().then().catch(() => {
|
||||||
alert.none("授权失败,请授权后再使用");
|
alert.none("授权失败,请授权后再使用");
|
||||||
});
|
});
|
||||||
@ -72,7 +73,7 @@ export default () => {
|
|||||||
{/* {(adminUserInfo as any)?.authentication_status==1&&<Modal data={adminUserInfo}/>} */}
|
{/* {(adminUserInfo as any)?.authentication_status==1&&<Modal data={adminUserInfo}/>} */}
|
||||||
{/* 测试暂时添加 */}
|
{/* 测试暂时添加 */}
|
||||||
<View style={{ fontSize: '26rpx', textAlign: 'center' }}>{BASE_URL}</View>
|
<View style={{ fontSize: '26rpx', textAlign: 'center' }}>{BASE_URL}</View>
|
||||||
{!userDataAgain?.is_authorize_name && <View onClick={handleAuth} className={styles["auth-suspension"]}></View>}
|
{!adminUserInfo?.is_authorize_name && <View onClick={handleAuth} className={styles["auth-suspension"]}></View>}
|
||||||
</View>
|
</View>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user