#
luxiaotao1123
2024-02-07 a482e23ae27b65c63e50e730d22397bc85fd481c
#
1个文件已修改
9 ■■■■ 已修改文件
zy-asrs-flow/src/App.jsx 9 ●●●● 补丁 | 查看 | 原始文档 | 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