diff --git a/src/components/PageHeader/index.js b/src/components/PageHeader/index.js
index 301e5bd2ddd969339f0cd727575aea3e04548b0a..c86628646c21bb0d6f88a3207cdd3204bab7fe81 100644
--- a/src/components/PageHeader/index.js
+++ b/src/components/PageHeader/index.js
@@ -1,6 +1,6 @@
import React, { PureComponent, createElement } from 'react';
import pathToRegexp from 'path-to-regexp';
-import { Breadcrumb, Tabs } from 'antd';
+import { Breadcrumb, Tabs, Card } from 'antd';
import classNames from 'classnames';
import styles from './index.less';
import { urlToList } from '../_utils/pathTools';
@@ -190,7 +190,7 @@ export default class PageHeader extends PureComponent {
}
const { breadcrumb } = this.state;
return (
-
+
{breadcrumb}
{logo &&
{logo}
}
@@ -216,7 +216,7 @@ export default class PageHeader extends PureComponent {
{tabList.map(item =>
)}
)}
-
+
);
}
}
diff --git a/src/models/setting.js b/src/models/setting.js
index cf5a8380baa1830352bea56ec48a94777b6ce3f1..72b7caca9e4d1807b4fc2d08cbc63418b96f2c58 100644
--- a/src/models/setting.js
+++ b/src/models/setting.js
@@ -9,6 +9,7 @@ const defaultSetting = {
fixSiderbar: false,
colorWeak: 'close',
};
+
export default {
namespace: 'setting',
state: defaultSetting,
diff --git a/src/routes/Dashboard/Workplace.js b/src/routes/Dashboard/Workplace.js
index 07c3cbd47ca6601612c9fbf3d3a1eacb37bde687..91e5dd28119465dd0261e5486faedb4c5bcf0d77 100644
--- a/src/routes/Dashboard/Workplace.js
+++ b/src/routes/Dashboard/Workplace.js
@@ -2,7 +2,7 @@ import React, { PureComponent } from 'react';
import moment from 'moment';
import { connect } from 'dva';
import { Link } from 'dva/router';
-import { Row, Col, Card, List, Avatar, Spin } from 'antd';
+import { Row, Col, Card, List, Avatar } from 'antd';
import { Radar } from 'components/Charts';
import EditableLinkGroup from 'components/EditableLinkGroup';
@@ -117,23 +117,20 @@ export default class Workplace extends PureComponent {
chart: { radarData },
} = this.props;
- const pageHeaderContent = (
-
- {currentUser && Object.keys(currentUser).length ? (
-
-
-
-
早安,{currentUser.name},祝你开心每一天!
-
- {currentUser.title} | {currentUser.group}
-
+ const pageHeaderContent =
+ currentUser && Object.keys(currentUser).length ? (
+
+
+
+
早安,{currentUser.name},祝你开心每一天!
+
+ {currentUser.title} | {currentUser.group}
- ) : null}
-
- );
+
+ ) : null;
const extraContent = (
@@ -156,7 +153,11 @@ export default class Workplace extends PureComponent {
);
return (
-
+