diff --git a/config/config.js b/config/config.js index f051e5627ea3e0f03487c8fec2ba3ebbca4a8e4f..264dcab33af4164c73bcaf26e019ec60d485acf7 100644 --- a/config/config.js +++ b/config/config.js @@ -43,8 +43,8 @@ export default { routes: [ { path: '/user', - components: ['../layouts/UserLayout'], - routes: [], + component: '../layouts/UserLayout', + routes: [{ path: '/user', component: './Welcome' }], }, { path: '/', diff --git a/src/pages/Welcome.js b/src/pages/Welcome.js index 9b8fe2ee3e15186cf2d3d7d1e25094fb655106f5..1f78bed0fda63b325a19ff1d092e034e24970532 100644 --- a/src/pages/Welcome.js +++ b/src/pages/Welcome.js @@ -1,7 +1,7 @@ import React from 'react'; export default () => ( -

+

想要添加更多页面?请参考{' '} umi 区块