'forkJoin' is deprecated

   参考连接:https://stackoverflow.com/questions/52486786/forkjoin-is-deprecated-resultselector-is-deprecated-pipe-to-map-instead
forkJoin([
          this.orderService.getCourseList(), this.orderService.getRoomList(), this.orderService.getExamConfigList()
      ]).subscribe((res: any) => {
        if (res.length > 0) {
         
          });
      // forkJoin([this.orderService.getCourseList(), this.orderService.getRoomList(), this.orderService.getExamConfigList()]).pipe(
      //   map(x => resultSelector(...x))
      // )
posted @ 2022-11-22 14:22  小小菜鸟04  阅读(35)  评论(0)    收藏  举报