Uncaught (in promise) TypeError怎么解决?

发布于 7 年前作者 qkang10385 次浏览最后编辑 7 年前来自 issues

操作系统:Windows,工具版本号:1.02.1911180

    get_logo_url: function () {
      var that = this;
      if (wx.getStorageSync('logo_url')) return this.setData({ logo_url: wx.getStorageSync('logo_url') });
      getLogo().then(res=>{
        wx.setStorageSync('logo_url', res.data.logo_url);
        that.setData({ logo_url: res.data.logo_url });
      });
    },

1 回复
na84
na841 楼5 年前
先打印一下 res  再说吧