你能试试下面的方法吗
forkJoin(
apiRequest1, apiRequest2, apiRequest3
).subscribe(
response =>{
//response[0] is data returned by API apiRequest1
//response[1] is data returned by API apiRequest2
//response[2] is data returned by API apiRequest3
}
error => console.log("Error: ", error),
() =>{
//All the API calls are completed here. Put your code here
//codes should be executed after the completion of all API calls
}
)