wupengfei
4 天以前 20c194331514f5b5af52b94faddb06e3e3faa92a
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;
}