let childNodes = this.$refs.MainHeader.children;
let width = (document.querySelector(".actvie").offsetWidth - 38) / 2;
let left = childNodes[index].offsetLeft + width;
// 计算左边导航的总宽度,设置为下划线的左移距离
this.distance = left;
let childNodes = this.$refs.MainHeader.children;
let width = (document.querySelector(".actvie").offsetWidth - 38) / 2;
let left = childNodes[index].offsetLeft + width;
// 计算左边导航的总宽度,设置为下划线的左移距离
this.distance = left;