0

我正在关注教程。在Asynchronous hooks中,有一个这样的片段:

todoService.before({
  find(hook) {
    return this.find().then(data => {
      hook.params.message = 'Ran through promise hook';
      hook.data.result = data;
      // Always return the hook object
      return hook;
    });
  }
});

你能告诉我this.find()应该怎么做吗?

4

1 回答 1

3

findFeathers 服务方法,并且this钩子运行的服务

于 2016-05-11T07:24:06.850 回答