zhengyiming
5 天以前 c2c4f65d6b70d9d2d9539187735c2640c1d8ac49
apps/cMiniApp/src/hooks/router.ts
@@ -8,8 +8,9 @@
  const switchTab = (option: Taro.switchTab.Option) => {
    const index = TabBarPageRouterList.findIndex((x) => option.url.includes(x));
    console.log('index: ', index);
    systemStore.setTabIndex(index);
    Taro.switchTab(option);
    Taro.switchTab(option).then(() => {
      systemStore.setTabIndex(index);
    });
  };
  return switchTab;
}