mounted() { this.$nextTick(this.getBodyHeight) window.addEventListener('resize', this.getBodyHeight) }, methods: { getBodyHeight() { this.bodyHeight = window.innerHeight - 48 }, }
mounted() { this.$nextTick(this.getBodyHeight) window.addEventListener('resize', this.getBodyHeight) }, methods: { getBodyHeight() { this.bodyHeight = window.innerHeight - 48 }, }
一. 二. 三. ! 作 者 : Yaopengfei(姚鵬飛) 博客地址 : http://www.cnblogs.com