Skip to content

Commit 13f786b

Browse files
committed
fix(tabs): what for router link changes
1 parent 55ed1db commit 13f786b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/ui/src/components/va-tabs/VaTabs.vue

+5
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ import {
7676
StyleValue,
7777
WritableComputedRef,
7878
onMounted,
79+
watchEffect,
7980
} from 'vue'
8081
8182
import {
@@ -279,6 +280,10 @@ const updateTabsState = () => {
279280
updateStartingXPoint()
280281
}
281282
283+
watchEffect(() => {
284+
updateTabsState()
285+
})
286+
282287
const updatePagination = () => {
283288
const tabsClientWidth = getClientWidth(tabs.value)
284289
const wrapperClientWidth = getClientWidth(wrapper.value)

0 commit comments

Comments
 (0)