How to write the left navigation bar of vue project in the form of interface?

clipboard.png
as shown in the figure, it is written to death directly. What should I do if I get it in the form of an interface?
1. Send a request to get the first-level menu of the navigation bar, and then send ajax again to get the second-level menu according to the index index when clicked.
2. One request to get all the first-level and second-level menus.
want to hear the opinions of the bosses. generous with your criticism.

Apr.29,2021

manages the permission control of the system. What we did before is to cycle through all the menu lists at once according to the role permissions of the login.
what is the purpose of your level of acquisition? Why there are so many menu lists?

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-1e439e5-42ffc.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-1e439e5-42ffc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?