How to implement iview-admin dynamic rendering menu

  1. iview-admin can only control the display and hiding of menus through access. What should I do if I want to configure paths and names?
Mar.13,2021

write in the database, do 2 things after login.vue verification
menu list of 1:load background
find the corresponding role_id, of this menu_name in the background, for example, [user add] menu [1jue 3] these two role_id own, then access: [1jue 3], modify router
2: judge the current user's role_id, and then Cookies. Set ('access',role_id)

then, there is no such thing. :)


Hello. Have you solved your dynamic rendering menu problem?


ask the questioner to add the source code

Menu