zhengyiming
2 天以前 5a681c9bd93a5a1ad1949fe07b47fc583b12ed61
fix: bug
2个文件已修改
10 ■■■■■ 已修改文件
apps/bMiniApp/src/hooks/router.ts 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/hooks/router.ts 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/bMiniApp/src/hooks/router.ts
@@ -9,8 +9,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);
    });
    httpLoggerRecord.info({
      message: `[switchTab]`,
      args: [option, { index, TabBarPageRouter }],
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;
}