diff --git a/.roadhogrc.mock.js b/.roadhogrc.mock.js
index 4142c517d809e65cb7dbc257fa9c38eb9635ee95..da9321e4072cdd2bf2afe1bd4384d37e710f5253 100644
--- a/.roadhogrc.mock.js
+++ b/.roadhogrc.mock.js
@@ -30,6 +30,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 e596c755fc51a580c47974b454b52e2dea39361a..26141d942a39b0b8cba97e22cf6dbaf3d54009f4 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 bf22747b1608ae3e37ea96143de182d7284a85fc..1c4a567d934cc3ce04f943b343db9b8d22733c5e 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 = (