1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-08-07 18:25:45 +08:00

Fixed tab number for new window definition (#949)

This commit is contained in:
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

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