diff --git a/packages/tabs/index.ts b/packages/tabs/index.ts index 3f932388..54215951 100644 --- a/packages/tabs/index.ts +++ b/packages/tabs/index.ts @@ -49,10 +49,6 @@ VantComponent({ type: null, value: 0, observer(name) { - if (!this.skipInit) { - this.skipInit = true; - } - if (name !== this.getCurrentName()) { this.setCurrentIndexByName(name); } @@ -110,10 +106,8 @@ VantComponent({ container: () => this.createSelectorQuery().select('.van-tabs'), }); - if (!this.skipInit) { - this.resize(); - this.scrollIntoView(); - } + this.resize(); + this.scrollIntoView(); }); },