Przeglądaj źródła

fix pageTitle for BasicLayout

ddcat1115 8 lat temu
rodzic
commit
e21642b3de
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/layouts/BasicLayout.js

+ 1 - 1
src/layouts/BasicLayout.js

@@ -152,7 +152,7 @@ class BasicLayout extends React.PureComponent {
     const { location } = this.props;
     const { pathname } = location;
     let title = 'Ant Design Pro';
-    getRouteData('UserLayout').forEach((item) => {
+    getRouteData('BasicLayout').forEach((item) => {
       if (item.path === pathname) {
         title = `${item.name} - Ant Design Pro`;
       }