jn517618 2 years ago
commit 3f8cd3a235
  1. 17
      src/page/index/sidebar/index.vue

@ -39,9 +39,20 @@
console.log(this.tag)
if(this.tag.label == '首页') {
setTimeout(() =>{
this.menu.map((item,index) =>{
this.menuArr.push(item.path)
})
console.log('menu ====>',this.menu)
this.menuArr = []
if(this.menu.length > 3){
this.menu.map((item,index) =>{
if(index <= 3){
this.menuArr.push(item.path)
}
})
}else{
this.menu.map((item,index) =>{
this.menuArr.push(item.path)
})
}
},300)
}
this.index.openMenu();

Loading…
Cancel
Save