|
@ -654,8 +654,14 @@ const changeTabCurrent = ({label,index})=>{ |
|
|
if(label){ |
|
|
if(label){ |
|
|
let tab = tabsList.value.find(item=>item.label==label) |
|
|
let tab = tabsList.value.find(item=>item.label==label) |
|
|
change(tab,tabsList.value.indexOf(tab)) |
|
|
change(tab,tabsList.value.indexOf(tab)) |
|
|
|
|
|
if(tabRef.value){ |
|
|
|
|
|
tabRef.value.changeCurrent(tabsList.value.indexOf(tab)) |
|
|
|
|
|
} |
|
|
}else{ |
|
|
}else{ |
|
|
change(tabsList.value[index],index) |
|
|
change(tabsList.value[index],index) |
|
|
|
|
|
if(tabRef.value){ |
|
|
|
|
|
tabRef.value.changeCurrent(index) |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|