如上图所示界面刷新加载时依旧会报该错误
切换路由时没有报该错误
var mainHeight = document.getElementsByClassName(mainClass).length > 0 && document.getElementsByClassName(mainClass)[0].clientHeight;
var reduceHeight = 0;
orderClass.filter(v=>{
reduceHeight += document.getElementsByClassName(v).length > 0 && document.getElementsByClassName(v)[0].clientHeight;
})
return mainHeight - reduceHeight - parseInt(orderNum);