Explorar o código

fix pageTitle for BasicLayout

ddcat1115 %!s(int64=8) %!d(string=hai) anos
pai
achega
e21642b3de
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 { location } = this.props;
     const { pathname } = location;
     const { pathname } = location;
     let title = 'Ant Design Pro';
     let title = 'Ant Design Pro';
-    getRouteData('UserLayout').forEach((item) => {
+    getRouteData('BasicLayout').forEach((item) => {
       if (item.path === pathname) {
       if (item.path === pathname) {
         title = `${item.name} - Ant Design Pro`;
         title = `${item.name} - Ant Design Pro`;
       }
       }