mounted(){ this.$nextTick(()=>{ // 页面渲染完成后的回调 console.log(this.$refs.getheight.offsetHeight)