源代码
wx.makePhoneCall({ phoneNumber: app.globalData.phoneNumber, })

只需要在后面加上catch就可以解决这个报错
wx.makePhoneCall({ phoneNumber:app.globalData.phoneNumber, }).catch((e) => { // console.log(e) //用catch(e)来捕获错误{makePhoneCall:fail cancel} })
源代码
wx.makePhoneCall({ phoneNumber: app.globalData.phoneNumber, })
只需要在后面加上catch就可以解决这个报错
wx.makePhoneCall({ phoneNumber:app.globalData.phoneNumber, }).catch((e) => { // console.log(e) //用catch(e)来捕获错误{makePhoneCall:fail cancel} })
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。