菜单默认首页时全部展开

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

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

Loading…
Cancel
Save