菜单默认首页时全部展开

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

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

Loading…
Cancel
Save