content.jsx 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import React from 'react';
  2. import '../content.less';
  3. import GroupLeftTab from './leftTabgroup.jsx';
  4. import Base from './base.jsx';
  5. import Group from './group.jsx';
  6. import Person from './person.jsx';
  7. import Company from './company.jsx';
  8. import Edu from './edu.jsx';
  9. import Tech from './tech.jsx';
  10. import Pfs from './pfs.jsx';
  11. import Ablt from './ablt.jsx';
  12. import HrSituation from './hrSituation.jsx';
  13. //新开发账户管理
  14. import Account from './newAccount/account';
  15. import Unit from './newAccount/unit';
  16. import Personal from './newAccount/personal';
  17. import Contacts from './newAccount/contacts';
  18. import {hashHistory,Route,Router,IndexRedirect} from 'react-router';
  19. import {Layout} from 'antd';
  20. const { Content } = Layout
  21. export default class ContentRouter extends React.Component {
  22. render() {
  23. return (
  24. <Content className="acc-content" id="content">
  25. <Router history={hashHistory}>
  26. <Route path="/account" component={Account} />
  27. <Route path="/unit" component={Unit} />
  28. <Route path="/personal" component={Personal} />
  29. <Route path="/contacts" component={Contacts} />
  30. </Router>
  31. </Content>
  32. )
  33. }
  34. }