|
|
|
@ -39,9 +39,20 @@ |
|
|
|
console.log(this.tag) |
|
|
|
console.log(this.tag) |
|
|
|
if(this.tag.label == '首页') { |
|
|
|
if(this.tag.label == '首页') { |
|
|
|
setTimeout(() =>{ |
|
|
|
setTimeout(() =>{ |
|
|
|
this.menu.map((item,index) =>{ |
|
|
|
console.log('menu ====>',this.menu) |
|
|
|
this.menuArr.push(item.path) |
|
|
|
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) |
|
|
|
},300) |
|
|
|
} |
|
|
|
} |
|
|
|
this.index.openMenu(); |
|
|
|
this.index.openMenu(); |
|
|
|
|