zhengyiming
2025-02-25 4dddfab131b05f529751dcf523710482304f0b84
fix: 对接
1个文件已修改
26 ■■■■ 已修改文件
apps/taro/src/stores/modules/system.ts 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/taro/src/stores/modules/system.ts
@@ -85,20 +85,22 @@
    },
    setNavigationBarHeight(systemInfo: Taro.getSystemInfoSync.Result) {
      const { right, height, width, top } = Taro.getMenuButtonBoundingClientRect();
      try {
        const { right, height, width, top } = Taro.getMenuButtonBoundingClientRect();
      let navigationBarHeight = 0;
        let navigationBarHeight = 0;
      if (systemInfo.platform === 'android') {
        navigationBarHeight = 48;
      } else {
        navigationBarHeight = 44;
      }
      this.menuButtonHeight = height;
      this.menuButtonWidth = width;
      this.menuButtonTop = top;
      this.menuButtonRightDistance = systemInfo.screenWidth - right;
      this.navigationBarHeight = navigationBarHeight;
        if (systemInfo.platform === 'android') {
          navigationBarHeight = 48;
        } else {
          navigationBarHeight = 44;
        }
        this.menuButtonHeight = height;
        this.menuButtonWidth = width;
        this.menuButtonTop = top;
        this.menuButtonRightDistance = systemInfo.screenWidth - right;
        this.navigationBarHeight = navigationBarHeight;
      } catch (error) {}
    },
    setTabIndex(tabIndex: number) {