一00一
一00一
  • 发布:2024-09-24 15:35
  • 更新:2024-09-24 15:35
  • 阅读:294

uni.login的出现多开异常情况,是BUG还是其它原因呢?

分类:uni-app
console.log('getUserProfile:------3.')  
const that = this;  
uni.login({  
    provider: 'weixin',  
    onlyAuthorize: true,  
    success: (res2) => {  
          console.log('getUserProfile:------4.')

调用uni.login唤起微信登录时,会出现两个应用进程,如果多次调用,还会再出一个应用进程,在日志中可以发现在输出getUserProfile:------3 后,又重新启动了新的进程,导致App.vue被调用

15:13:18.678 getUserProfile:------3. at pages/index/login.vue:151
15:13:19.524 App Show e:, at App.vue:19
15:13:19.986 getUserProfile:------4. at pages/index/login.vue:157

2024-09-24 15:35 负责人:无 分享
已邀请:

要回复问题请先登录注册