源代码
wx.makePhoneCall({
phoneNumber: app.globalData.phoneNumber,
})
只需要在后面加上catch就可以解决这个报错
wx.makePhoneCall({
phoneNumber:app.globalData.phoneNumber,
}).catch((e) => {
// console.log(e) //用catch(e)来捕获错误{makePhoneCall:fail cancel}
})