uni.getUserProfile({
success: async (infoRes)=>{
uni.showToast({
title: `登录成功`,
icon: 'none'
});
},
fail: (err) => {
console.log('err--->',err)
uni.showToast({
title: `登录失败`,
icon: 'none'
});
}
})
1 个回复
喜欢技术的前端 - QQ---445849201
uni.getUserProfile 这个在抖音上不支持 可以使用 if(uni.getUserProfile) 判断uni.getUserProfile是否可用。