zy-asrs-flow/src/App.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
zy-asrs-flow/src/App.jsx
@@ -28,7 +28,14 @@ export async function patchClientRoutes({ routes }) { patchRouteWithRemoteMenus(routes); }; } export async function onRouteChange({ clientRoutes, location }) { const menus = getRemoteMenu(); if (menus === null && location.pathname !== loginPath) { history.go(0); } } /** * @see https://umijs.org/zh-CN/plugins/plugin-initial-state