diff --git a/.roadhogrc.mock.js b/.roadhogrc.mock.js
index 4d082661194a92c954fa7d1363d93162eb8975cf..20096fce3d70ffe15b72f8fd7a1270eb3e38d0d9 100644
--- a/.roadhogrc.mock.js
+++ b/.roadhogrc.mock.js
@@ -29,6 +29,28 @@ const proxy = {
userid: '00000001',
email: 'antdesign@alipay.com',
profile: '简单的介绍下自己',
+ signature: '海纳百川,有容乃大',
+ title: '交互专家',
+ group: '蚂蚁金服-平台数据技术事业群-基础平台部-用户体验技术部-UED',
+ tags: [{
+ key: '0',
+ label: '很有想法的',
+ }, {
+ key: '1',
+ label: '专注设计',
+ }, {
+ key: '2',
+ label: '辣~',
+ }, {
+ key: '3',
+ label: '大长腿',
+ }, {
+ key: '4',
+ label: '川妹子',
+ }, {
+ key: '5',
+ label: '海纳百川',
+ }],
notifyCount: 12,
country: 'China',
geographic: {
diff --git a/mock/api.js b/mock/api.js
index 72c7ade9a8e422499696c2c2c19f5e9077440f80..e639bc6e4955ab3396d06eb8203b4964912642b5 100644
--- a/mock/api.js
+++ b/mock/api.js
@@ -88,14 +88,17 @@ export function fakeList(count) {
{
avatar: 'https://gw.alipayobjects.com/zos/rmsportal/ZiESqWwCXBRQoaPONSJe.png',
name: '曲丽丽',
+ id: 'member1',
},
{
avatar: 'https://gw.alipayobjects.com/zos/rmsportal/tBOxZPlITHqwlGjsJWaF.png',
name: '王昭君',
+ id: 'member2',
},
{
avatar: 'https://gw.alipayobjects.com/zos/rmsportal/sBxjgqiuHMGRkIjqlQCd.png',
name: '董娜娜',
+ id: 'member3',
},
],
});
diff --git a/src/common/router.js b/src/common/router.js
index e0514c450ff6ac97ab7aaca0033341d5e828af44..aca4ead7d2959c318cfed598a81618d3614fcbb1 100644
--- a/src/common/router.js
+++ b/src/common/router.js
@@ -148,6 +148,9 @@ export const getRouterData = (app) => {
'/exception/trigger': {
component: dynamicWrapper(app, ['error'], () => import('../routes/Exception/triggerException')),
},
+ '/user-center': {
+ component: dynamicWrapper(app, ['list', 'user', 'project'], () => import('../routes/UserCenter')),
+ },
'/user': {
component: dynamicWrapper(app, [], () => import('../layouts/UserLayout')),
},
diff --git a/src/components/GlobalHeader/index.js b/src/components/GlobalHeader/index.js
index 04413c0faf71319922c7a2e0f55490f21cbb980c..a1a5614b325aa39f75c0f4e9d56bd7808491fce5 100644
--- a/src/components/GlobalHeader/index.js
+++ b/src/components/GlobalHeader/index.js
@@ -57,7 +57,7 @@ export default class GlobalHeader extends PureComponent {
} = this.props;
const menu = (