diff --git a/src/tabs/tabs.ts b/src/tabs/tabs.ts index 894ae3204..adc199a26 100644 --- a/src/tabs/tabs.ts +++ b/src/tabs/tabs.ts @@ -131,10 +131,14 @@ export default class Tabs extends SuperComponent { } }); if (this.data.currentIndex === index) return; - this.setData({ - currentIndex: index, - }); - this.setTrack(); + this.setData( + { + currentIndex: index, + }, + () => { + this.setTrack(); + }, + ); }, getCurrentName() {