From 7cd6587d43dfda47b043c775ea9e67ee4c1bbd08 Mon Sep 17 00:00:00 2001
From: Mr Ke <kelq@hugeinfo.com.cn>
Date: Tue, 14 Apr 2020 14:09:55 +0800
Subject: [PATCH] 跳转问题

---
 src/index.js |   21 +++++++++++++++------
 1 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/src/index.js b/src/index.js
index b701614..83c8587 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,18 +48,22 @@
           </Switch>
           <Content>
             <Switch>
-              
+              {/* 新建文档 */}
+              <Route path="/document/create/:id?" component={DocumentEdit} />
+
               {/* 全部通知 */}
               <Route path="/index/workbench/announcement" component={Announcement} />
+              {/* 规章制度 */}
+              <Route path="/index/rules" component={System} />
+
               {/* 首页 */}
               <Route path="/index" component={Workbench} />
-              <Route path="/index/system" component={System} />
-              
-              <Route path="/login" component={Login} />
 
-              <Route path="/" component={Index} />
+
+              <Route path="/login" component={Login} />
+              <Route path="/" component={Workbench} />
               {/* 路由的页面重定向 */}
-              <Redirect to="/" component={Index} />
+              <Redirect to="/" component={Workbench} />
             </Switch>
           </Content>
         </Layout>

--
Gitblit v1.8.0