Ant design pro turns the route into a back-end direct return

using ant design pro, you want to return all the routing menudata in menu.js to the backend.

clipboard.png

clipboard.png

clipboard.png

clipboard.png
the menu bar is empty. It seems to be due to the problem of asynchronism. How can this place turn asynchrony into Synchronize

Apr.05,2021

has found the reason because the data has not been updated when the component rendering is completed. I changed this.menus = props.menuData; in sildemenu to change state to trigger render update


use this.state.meanu to receive and transmit values. This is the real-time refresh of the page


the weak question menu shows how the routing router.js part is handled

.
Menu