dengliming opened a new issue, #642: URL: https://github.com/apache/shenyu-dashboard/issues/642
## Description `this.flatMenuKeys` is derived from the initial (plugin-less) `menuData` in the constructor and never refreshed, but `getSelectedMenuKeys` uses it to match the current path. Plugin menus are loaded asynchronously afterwards. ## Location (Lines refer to `master @ 83969a5`.) - `src/components/SiderMenu/SiderMenu.js:84-86` and `getSelectedMenuKeys` ## Impact Navigating to e.g. `/plug/Proxy/divide` after plugins load matches no key, so `selectedKeys` falls back to the SubMenu key and the plugin item is not highlighted. ## Suggested fix Recompute `flatMenuKeys` in `componentDidUpdate` when `menuData` changes (or compute it from props inside `getSelectedMenuKeys`). ## Related existing None -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
