From 53e4a0d3f9ce718c296abbb14b04fadcb40dfaad Mon Sep 17 00:00:00 2001 From: johnsonwong666 <1067100250@qq.com> Date: Thu, 18 May 2023 19:38:42 +0800 Subject: [PATCH] fix(tab): async tab active --- packages/tabs/index.ts | 4 ++++ 1 file changed, 4 insertions(+) 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; }