菜单默认首页时全部展开

main
zhangqun 2 years ago
parent 4dd6a06545
commit d11c4348b8
  1. 15
      src/page/index/sidebar/index.vue

@ -36,12 +36,14 @@
};
},
created() {
setTimeout(() =>{
this.menu.map((item,index) =>{
this.menuArr.push(item.path)
})
},300)
console.log(this.tag)
if(this.tag.label == '首页') {
setTimeout(() =>{
this.menu.map((item,index) =>{
this.menuArr.push(item.path)
})
},300)
}
this.index.openMenu();
},
computed: {
@ -51,7 +53,6 @@
}
},
methods: {
}
};
</script>

Loading…
Cancel
Save