Fixed tab number for new window definition (#949)

pull/3759/head
Yamel Senih 2021-06-28 19:40:54 -04:00 committed by GitHub
parent 166fc17efa
commit 6071dbec8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions

View File

@ -113,11 +113,9 @@ export default defineComponent({
* @param {object} tabHTML DOM HTML the tab clicked
*/
const handleClick = (tabHTML) => {
if (tabUuid.value !== tabHTML.$attrs.tabuuid) {
tabUuid.value = tabHTML.$attrs.tabuuid
setCurrentTab()
setTabNumber(tabHTML.$attrs.key)
}
tabUuid.value = tabHTML.$attrs.tabuuid
setCurrentTab()
setTabNumber(tabHTML.index)
}
// watch router query tab parent value