Procházet zdrojové kódy

fix: activate the tab label correctly

nian před 2 měsíci
rodič
revize
787c21cf88
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  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(