With regard to the switching components of the vue tab and using the same interface, please give us some suggestions.

I have a vue technical question for you. I have a tab tab in the component page that uses: is to dynamically switch components, but both are the same request interface, but I don"t want to use the same interface for both components at the same time! Could you tell me how to optimize it? Please give me some advice. thank you.
ps: (pull-up loading is used for both component switches).


configure the tabs as an array, then set some configurations inside, and pass in the corresponding configurations for the dynamic components.

[
    {
         tabName:'',
         options:{
             apiFunc:apiFunc1
             //...
         }
    },
    {
         tabName:'',
         options:{
             apiFunc:apiFunc2
             //...
         } 
    }
]
<component :is="currentTab.tabName" :config="currentTab.options" />

I don't know what you mean

Menu