vben
2021-08-24 56a966cfbf8db5b29a42185f0f25a0e800c30dbb
src/layouts/default/content/useContentViewHeight.ts
@@ -19,7 +19,7 @@
  const contentHeight = ref(window.innerHeight);
  const pageHeight = ref(window.innerHeight);
  const getViewHeight = computed(() => {
    return unref(contentHeight) - unref(headerHeightRef) || 0;
    return unref(contentHeight) - unref(headerHeightRef) - unref(footerHeightRef) || 0;
  });
  useWindowSizeFn(
@@ -27,7 +27,7 @@
      contentHeight.value = window.innerHeight;
    },
    100,
    { immediate: true }
    { immediate: true },
  );
  async function setPageHeight(height: number) {