如以下文件所述
开发-逐步-Angular-DevExtreme-Using-GetPeople-Method-from-Angular
this.dataSource = new CustomStore({
key: "id",
load: (loadOptions) => {
return this._personService.getPeople("").toPromise();
}
});
getPeople("") 没有参数。当我将其更改为 getPeople(loadOptions) 时,我在后端的 DataSourceLoadOptions 中获得空引用。在测试时,我只是忽略了生成的代理并通过 http 发送它,现在它可以工作了。
有什么我应该做的吗?