From 0bd9e1222d867893b66044b04754d9cc967d472e Mon Sep 17 00:00:00 2001 From: liuwh <hugeinfo123> Date: Mon, 06 Apr 2020 16:49:45 +0800 Subject: [PATCH] 新建文档 --- src/index.js | 19 ++++++++++++++++--- 1 files changed, 16 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index b701614..12fcbee 100644 --- a/src/index.js +++ b/src/index.js @@ -25,6 +25,11 @@ import Announcement from './pages/index/Announcement'; //全部通知 + +import DocumentEdit from './pages/document/DocumentEdit'; //新建文档 + + + const { Content } = Layout; const history = createHashHistory(); @@ -43,13 +48,21 @@ </Switch> <Content> <Switch> - + {/* 新建文档 */} + <Route path="/document/create" component={DocumentEdit} /> + + {/* 全部通知 */} <Route path="/index/workbench/announcement" component={Announcement} /> {/* 首页 */} - <Route path="/index" component={Workbench} /> + <Route path="/index/workbench" component={Workbench} /> + {/* 规章制度 */} <Route path="/index/system" component={System} /> - + + + + + <Route path="/login" component={Login} /> <Route path="/" component={Index} /> -- Gitblit v1.8.0