构建发布dist目录,添加AppShare和Article组件
This commit is contained in:
@ -17,6 +17,14 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
const route = useRoute()
|
||||
const footer = ref<HTMLElement | null>(null)
|
||||
onMounted(() => {
|
||||
// 计算footer的高度
|
||||
|
||||
const footerHeight = footer.value?.clientHeight || 0;
|
||||
|
||||
console.log('footerHeight', footerHeight);
|
||||
})
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user