类型“ take:10”的参数不能分配给参数类型“ number”

时间:2019-01-24 04:32:44

标签: c# angular

{take:10}->出现错误并显示红色下划线

 getPendingCount(): void {
    if (!this.storageService.accessToken)
        return;
    this.prescriptionService.getPrescriptionStatusList({ take: 10 }, { skip: 0 }, { status: 1 })
        .subscribe((data: any) => {
            const count = (data.length == 10) ? "9+" : data.length.toString();
            this.allMenus.find(menu => menu.name == 'Prescription').unreadCount = count;
        });

0 个答案:

没有答案