From 5732c5bf96ca9d6fc8ff297c37ba07a5a2bd4582 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=84=9A=E9=81=93?= Date: Tue, 25 Dec 2018 17:11:45 +0800 Subject: [PATCH] fix userLayout --- config/config.js | 4 ++-- src/pages/Welcome.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/config.js b/config/config.js index f051e562..264dcab3 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 9b8fe2ee..1f78bed0 100644 --- a/src/pages/Welcome.js +++ b/src/pages/Welcome.js @@ -1,7 +1,7 @@ import React from 'react'; export default () => ( -

+

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