5 changed files with 73 additions and 36 deletions
@ -1,7 +1,24 @@ |
|||||
import React, { useEffect, useState } from 'react' |
import React, { useEffect, useState } from 'react'; |
||||
|
import { connect } from 'react-redux'; |
||||
|
import { Button, } from 'antd' |
||||
|
|
||||
function Adapter (props) { |
const LatestMetadata = (props) => { |
||||
return <>适配器管理</> |
const { user, dispatch, actions, history } = props; |
||||
|
|
||||
|
useEffect(() => { |
||||
|
}, []) |
||||
|
|
||||
|
return <> |
||||
|
<Button type="primary" onClick={() => { history.push(`/metadataAcquisition/adapter/detail/1`) }} >查看详情</Button> |
||||
|
</> |
||||
} |
} |
||||
|
|
||||
export default Adapter |
function mapStateToProps(state) { |
||||
|
const { global, auth } = state; |
||||
|
return { |
||||
|
clientHeight: global.clientHeight, |
||||
|
user: auth.user, |
||||
|
actions: global.actions, |
||||
|
}; |
||||
|
} |
||||
|
export default connect(mapStateToProps)(LatestMetadata) |
@ -0,0 +1,7 @@ |
|||||
|
import React, { useEffect, useState } from 'react' |
||||
|
|
||||
|
function AdapterDetail(props) { |
||||
|
return <>适配器详情</> |
||||
|
} |
||||
|
|
||||
|
export default AdapterDetail |
Loading…
Reference in new issue