|
@@ -1,13 +1,20 @@
|
|
|
-import React, { Component } from 'react'
|
|
|
-export default class index extends Component {
|
|
|
-
|
|
|
-
|
|
|
- render() {
|
|
|
- return (
|
|
|
- <div className="pi-flex-row">
|
|
|
- {/* <Meun/> */}
|
|
|
- <h1>合同管理</h1>
|
|
|
+import LeftSide from '@/components/LeftSide'
|
|
|
+import Guards from '@/components/Navigation'
|
|
|
+import { NavigationGuardsProps } from '@/types/router'
|
|
|
+import React from 'react'
|
|
|
+import { Switch } from 'react-router-dom'
|
|
|
+const Contract:React.FC<NavigationGuardsProps> = props => {
|
|
|
+ const { routeConfig, match, location } = props
|
|
|
+ return (
|
|
|
+ <>
|
|
|
+ <LeftSide childRoutes={routeConfig} location={location}></LeftSide>
|
|
|
+ <div className="panel-content">
|
|
|
+ <Switch>
|
|
|
+ <Guards routeConfig={routeConfig} match={match} location={location}></Guards>
|
|
|
+ </Switch>
|
|
|
</div>
|
|
|
- )
|
|
|
- }
|
|
|
+ </>
|
|
|
+ )
|
|
|
}
|
|
|
+
|
|
|
+export default Contract
|