Explorar el Código

fix: activate the tab label correctly

nian hace 2 meses
padre
commit
787c21cf88
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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(