Vue makes a tab switch, switching content to four list pages with the same style, but rendering data is different.

requirements: make a switch tab switch page. Tab-content is four identical list pages, but the list pages are rendered with different data according to different tab-nav.
is supposed to be done with dynamic components, but because the four subcomponents look exactly the same, I want to use one component and request data to render depending on the parameters passed. But in doing so, there is always something wrong with my cache.

Mar.22,2021

data1:,
data2:,
data3:,
data4:,
data:,
data are used as the rendering data of the list, and the corresponding data is assigned to data each time you switch.
for example, when tab = 1, this.data = this.data1


http://mint-ui.github.io/docs.


have you solved

?
Menu