From 783fba8034fdde6651bc6932852a04072813fd67 Mon Sep 17 00:00:00 2001
From: liuwh <hugeinfo123>
Date: Mon, 06 Apr 2020 19:06:41 +0800
Subject: [PATCH] 2
---
src/index.js | 16 +++++++++++++---
1 files changed, 13 insertions(+), 3 deletions(-)
diff --git a/src/index.js b/src/index.js
index 0a36312..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,15 +48,20 @@
</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="/login" component={Login} />
+ <Route path="/" component={Workbench} />
{/* 路由的页面重定向 */}
<Redirect to="/" component={Workbench} />
</Switch>
--
Gitblit v1.8.0