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?

Menu