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

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b2b97b-2bad6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b2b97b-2bad6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?