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 1/2] 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; } From 97af57cee94dc586362cf1b5b8ba8e283628a87f Mon Sep 17 00:00:00 2001 From: johnsonwong666 <1067100250@qq.com> Date: Fri, 19 May 2023 15:04:33 +0800 Subject: [PATCH 2/2] fix(tab): delete extra return --- packages/tabs/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/tabs/index.ts b/packages/tabs/index.ts index 5fb9c138..6968995b 100644 --- a/packages/tabs/index.ts +++ b/packages/tabs/index.ts @@ -199,7 +199,6 @@ VantComponent({ if (currentIndex === data.currentIndex) { if (!data.inited) { this.resize(); - return; } return; }