小程序 wx.makePhoneCall报错 Unhandled promise rejection{errMsg: “makePhoneCall:fail cancel“}

小程序 wx.makePhoneCall报错 Unhandled promise rejection{errMsg: “makePhoneCall:fail cancel”}

在wx.makePhoneCall后边拼接上.catch((e) => {});就可以啦

代码示例

wx.makePhoneCall({
    
    
      phoneNumber: 'phone',
}).catch((e) => {
    
    });

猜你喜欢

转载自blog.csdn.net/weixin_45357661/article/details/129181038