我的页面点击问题

This commit is contained in:
czm 2022-07-07 13:01:15 +08:00
parent ac773b7268
commit ddda63c1b0

View File

@ -25,11 +25,12 @@ export default () => {
const { getSelfUserInfo } = useLogin();
const { adminUserInfo } = useSelector(state => state.userInfo);
useEffect(() => {
getSelfUserInfo().then().catch(() => {
alert.none("授权失败,请授权后再使用");
});
// getSelfUserInfo().then().catch(() => {
// alert.none("授权失败,请授权后再使用");
// });
}, []);
const handleAuth = async () => {
console.log('授权面版')
getSelfUserInfo().then().catch(() => {
alert.none("授权失败,请授权后再使用");
});
@ -72,7 +73,7 @@ export default () => {
{/* {(adminUserInfo as any)?.authentication_status==1&&<Modal data={adminUserInfo}/>} */}
{/* 测试暂时添加 */}
<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>
)
}