提交 7954726c 编写于 作者: 愚道 提交者: Yu

fix menu bug

上级 fc6ce19f
......@@ -50,12 +50,18 @@ export default {
path: '/',
component: '../layouts/BasicLayout',
routes: [
{ path: '/', redirect: '/welcome' },
// dashboard
{
path: '/',
name: 'dashboard',
icon: 'dashboard',
component: './BasicDemo',
path: '/welcome',
name: 'welcome',
icon: 'smile',
component: './Welcome',
},
{
path: 'https://github.com/umijs/umi-blocks/tree/master/ant-design-pro',
name: '更多页面',
icon: 'block',
},
],
},
......
import React from 'react';
export default () => <p>hello pro!</p>;
import React from 'react';
export default () => (
<p>
想要添加更多页面请参考{' '}
<a href="https://umijs.org/guide/block.html" target="_blank" rel="noopener noreferrer">
umi 区块
</a>
</p>
);
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册