Forráskód Böngészése

fix: activate the tab label correctly

nian 2 hónapja
szülő
commit
787c21cf88
1 módosított fájl, 3 hozzáadás és 1 törlés
  1. 3 1
      src/layout/component/Tabs.vue

+ 3 - 1
src/layout/component/Tabs.vue

@@ -281,7 +281,9 @@ function scrollToActiveTab() {
 }
 
 const routerAfterEach = router.afterEach(() => {
-  pendingActiveKey.value = tabActiveKey.value
+  nextTick(() => {
+    pendingActiveKey.value = tabActiveKey.value
+  })
 })
 
 watch(