diff --git a/packages/tabs/index.ts b/packages/tabs/index.ts index 0af7cd7b..5fb9c138 100644 --- a/packages/tabs/index.ts +++ b/packages/tabs/index.ts @@ -197,6 +197,10 @@ VantComponent({ }); if (currentIndex === data.currentIndex) { + if (!data.inited) { + this.resize(); + return; + } return; }