Element-ui dynamic display menu

menu contents are obtained from the background, similar to [{id:0, children: [{id:1, parentId:0, children: []] }, {id:2, parentId:0}]}] in this format, how can I use element-ui to dynamically display it

Mar.02,2021

use the el-menu loop to read the corresponding data. Router configures the corresponding page.

Menu