The problem that the location where the iview tabs component activates TabPane will be recorded

scenario: list page: list; details page: detail (uses tabs, in the detail page and TabPane is dynamically generated)
Click "Commodity 1" in list to enter the detail page, click to activate the second TabPane, return to list, and then click "Commodity 2" to enter detial, TabPane unexpectedly stays at the second TabPane (it is expected to stay at the first TabPane), detail data is correct.

html
<Tabs :value="0" @on-click="clickTabs">
    <TabPane v-for="(items,index) in processNameArray" :label="items.name" :key="items.id" :name="index+""">
        <Table :height="tableHeight" size="small" border :columns="tableHeader" :data="items.tableData"></Table>
    </TabPane>
</Tabs>

js
created(){
    getDetailHttp(editId){
        //
        this.$fetch(
            api.specSheetDetail() + editId
        ).then(res=>{
            if(res.data.status === 200){
                ...   //tabs
                this.clickTabs("0")  //
            };
        });
    },
}         

Aug.09,2021

I have done something similar. My approach is to execute a click event on Tabs while clicking on the product details, forcing TabPane to stay at the first

.
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-1b3b976-2ba23.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-1b3b976-2ba23.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?