实现功能只需传入 :sideMenu
属性便可生成菜单
安装
npm install zy-sub-menu
引入标签
<el-menu>
<zy-sub-menu :sideMenu="menudata"></zy-sub-menu>
</el-menu>
传入数据类型 [{ component: meta: { fullPath: "/welcome" icon: "el-icon-s-home" name: "管理首页" } name: "welcome" path: "welcome" }, {…}, {…}, {…}, {…}, ob: Observer]