wx.showToast不显示
wx.showToast在回调函数内调用时不显示,但是wx.showToast的success却有执行 [代码]wx.getUserInfo({[代码][代码] [代码][代码]success: res => {[代码][代码] [代码][代码]// 可以将 res 发送给后台解码出 unionId[代码][代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title: [代码][代码]'登录成功'[代码][代码],[代码][代码] [代码][代码]duration: 5000,[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]console.log([代码][代码]"登录成功"[代码][代码])[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码][代码]}})[代码]