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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e9147f-133f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e9147f-133f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?