diff --git a/config/config.js b/config/config.js index 38b517587be2d6653cb8f40d99a2ae6e75e477e9..18288405e6473831dd3649d436d5993ec53da48e 100644 --- a/config/config.js +++ b/config/config.js @@ -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', }, ], }, diff --git a/src/pages/BasicDemo.js b/src/pages/BasicDemo.js deleted file mode 100644 index 045b73649c4dacb86b631f6303e85f65de5193b6..0000000000000000000000000000000000000000 --- a/src/pages/BasicDemo.js +++ /dev/null @@ -1,3 +0,0 @@ -import React from 'react'; - -export default () =>
hello pro!
; diff --git a/src/pages/Welcome.js b/src/pages/Welcome.js new file mode 100644 index 0000000000000000000000000000000000000000..9b8fe2ee3e15186cf2d3d7d1e25094fb655106f5 --- /dev/null +++ b/src/pages/Welcome.js @@ -0,0 +1,11 @@ +import React from 'react'; + +export default () => ( ++ 想要添加更多页面?请参考{' '} + + umi 区块 + + 。 +
+);