hcong
2024-11-21 55d42cc7a2e6e21e1f8e06ca80089fe911914ac9
src/components/core/BaseContentLayout.vue
@@ -30,14 +30,16 @@
      if (this.$refs.headerRef) {
        const h1 = this.$refs.headerRef.$el.offsetHeight;
        const h = h1;
        return `calc(100vh - ${h}px - 60px - var(--el-main-padding) * 2)`;
        return `calc(100vh - ${h}px - 60px - var(--el-main-padding) * 2 + 6px)`;
      } else {
        return `calc(100vh - 60px * 2 - var(--el-main-padding) * 2)`;
      }
    }
  },
  mounted() {
    this.mainHeight = this.calHeight();
    setTimeout(() => {
      this.mainHeight = this.calHeight();
    }, 150);
  }
};
</script>