lacorey
lacorey
  • 发布:2024-03-05 20:42
  • 更新:2024-03-05 20:42
  • 阅读:86

在pc端微信小程序 wx.getPrivacySetting 无响应,导致无法登录

分类:uni-app

在调试工具中和手机微信中 都功能正常,包括发布正式版后都功能正常,但在pc上微信小程序中,wx.getPrivacySetting 无响应,导致无法登录,且没有调试环境,怎么办???

wx.getPrivacySetting({  
                    success: res => {  
                        console.log(  
                                res  
                                ) // 返回结果为: res = { needAuthorization: true/false, privacyContractName: '《xxx隐私保护指引》' }  
                        // 打开小程序隐私协议提示  
                        if (res.needAuthorization) {  
                            this.showPrivacy = true  
                            this.privacyContractName = res.privacyContractName  
                        } else {  
                            this.weixinLogin()  
                        }  
                    },  
                    fail: () => {},  
                    complete: () => {}  
                })
2024-03-05 20:42 负责人:无 分享
已邀请:

要回复问题请先登录注册