Could you tell me something about the asynchronous request to render the page?

there are some tab tabs at the top of the page that request to pull data when you click a tab and it is shown below
that two tabs are clicked.
0ms makes the first request for 300ms to make a second request, 400ms asynchronously returns the data of the second request, 500ms asynchronously returns the data of the first request. Data is bound to the page (is using mpvue to do Mini Program development) then the page displays the first data, how to solve this situation?

When the

callback returns data, determine whether the current tab is consistent with the tab when requesting data


each tab corresponds to a vm or decide whether to update the vm of the current content area based on the type of the asynchronous event.

Menu