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()
}

 

---------------------------------------------
生活的意义并不是与他人争高下,而在于享受努力实现目标的过程,结果是对自己行动的嘉奖。
↑面的话,越看越不痛快,应该这么说:

生活的意义就是你自己知道你要做什么,明确目标。没有目标,后面都是瞎扯!

新博客 ​​​https://www.VuejsDev.com​​ 用于梳理知识点