vue 高度 动态更新计算
calcHeight () { this.orgTreeHeight = window.innerHeight - 180 // this.tableHeight = window.innerHeight - 210 this.divHeight = window.innerHeight - 180 } }, mounted () { // console.info('jobOrgNum this', this) window.onresize = () => { this.calcHeight() } }, watch: { '$route' (to, from) { this.calcHeight() }