mounted() {
const that = this;
window.onresize = function temp() {
that.clientHeight = `${document.documentElement.clientHeight}`;
console.log(that.clientHeight)
};
},
转载于:https://www.cnblogs.com/zhuwu/p/8366367.html