zhengyiming
2025-02-25 4dddfab131b05f529751dcf523710482304f0b84
apps/taro/src/stores/modules/system.ts
@@ -85,6 +85,7 @@
    },
    setNavigationBarHeight(systemInfo: Taro.getSystemInfoSync.Result) {
      try {
      const { right, height, width, top } = Taro.getMenuButtonBoundingClientRect();
      let navigationBarHeight = 0;
@@ -99,6 +100,7 @@
      this.menuButtonTop = top;
      this.menuButtonRightDistance = systemInfo.screenWidth - right;
      this.navigationBarHeight = navigationBarHeight;
      } catch (error) {}
    },
    setTabIndex(tabIndex: number) {