1.全局注册element-plus icon 组件 2.在menu中使用动态组件,以函数Icons(item)控制。 3.Icons(item)函数:函数作用为根据请求的数据将item.icon进行切割重组。 4.结果: