#
luxiaotao1123
2024-02-07 a482e23ae27b65c63e50e730d22397bc85fd481c
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