<ul ref="navUl">
<li v-for="(item,index) in navList" :key="index">{{item.FaqCategoryName}}</li>
</ul>
let w=0
this.$refs.navUl.children.forEach(v=>{
w=w+v.clientWidth
})
if(w>987){
this.$refs.navUl.style.height='55px'
}