Browse Source

搜索菜品 pageSize

main
kely 1 year ago
parent
commit
7120d3546d
  1. 2
      projects/cdk/src/shared/components/dish-select/dish-select.component.ts

2
projects/cdk/src/shared/components/dish-select/dish-select.component.ts

@ -42,7 +42,7 @@ export class DishSelectComponent implements OnInit, ControlValueAccessor {
this.loading = true this.loading = true
}), }),
switchMap((term: string) => switchMap((term: string) =>
this.api.getDishPage({ pageNo: 0, pageSize: 5 }, { keyword: term }).pipe( this.api.getDishPage({ pageNo: 0, pageSize: 100 }, { keyword: term }).pipe(
finalize(() => { finalize(() => {
this.loading = false this.loading = false
}), }),

Loading…
Cancel
Save