How do I call methods defined by methods during the life cycle of Mini Program components?

the following is the Mini Program component code

methods: {
    getList: function () {
      util.get(`${config.service.host}/web/news/list_with_pub_info?channelId=${config.channelId}&page=${that.data.page}&size=${that.data.size}`, function (res) {
        that.setData({
          newsList: res.data.content,
          totalPages: res.data.totalPages
        })
      }, function (e) {
        console.log(JSON.stringify(e));
      });
     },
  },
  ready: function (options) {
    let that = this;
    this.getList();//undefined
  },
Apr.05,2021

first of all, this is called in onLoad, and then you all let that = this and then in this.getList it must be undefined, either let that = this , or that.getList . There are also errors in the getList above. let that = this

is added to the getList method.
Menu