forked from huge/frontEnd/hugeOA

liuwh
2020-04-06 0bd9e1222d867893b66044b04754d9cc967d472e
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} />