let childNodes = this.$refs.MainHeader.children;
? ? ? ? ? let width = (document.querySelector(".actvie").offsetWidth - 38) / 2;
? ? ? ? ? let left = childNodes[index].offsetLeft + width;
? ? ? ? ? // 計算左邊導航的總寬度,設(shè)置為下劃線的左移距離
? ? ? ? ? this.distance = left;