Commit 6bc72d60 by 潘际乾

添加MT、MX报文入口

parent bd6212b0
......@@ -13,6 +13,7 @@ import SWFPage from "../swift/SWFPage2"
import LeadPage from "../swift/LeadPage"
import Preview from "../swift/Preview"
import Result from "../swift/Result"
import Entry from "../swift/Entry"
function validate() {
// 在路由群载入时做 filter 处理
......@@ -24,8 +25,10 @@ const Routes = ({ history }) =>
<Route path="/" onEnter={validate}>
<IndexRedirect to="home" />
<Route component={App}>
<Route path="home" component={LeadPage}/>
<Route path="entry" component={Entry}/>
<Route path="entry/:mctid" component={Entry}/>
<Route path="home" component={LeadPage}/>
<Route path="home/:mctid" component={LeadPage}/>
<Route path="lead/:mctid" component={LeadPage}/>
......
import React, { Component } from 'react'
import { Button } from 'antd'
export class Entry extends Component
{
constructor(props) {
super(props)
}
render()
{
return (
<div style={{ display: 'flex', marginTop: '100px', justifyContent: 'center', alignItems: 'center' }}>
<Button type="primary" ghost>
<a onClick={ () => {
this.props.history.push(`home/${this.props.params.mctid ? this.props.params.mctid : ''}`)
} }
>MT报文</a>
</Button>
<Button type="primary" ghost style={{ marginLeft: '20px' }}>
{/* <a href="http://192.168.0.110:10003/swift-editor-1.0.0/index.html#/">MX报文</a> */}
<a href="/swift-editor-1.0.0/index.html">MX报文</a>
</Button>
</div>
)
}
}
export default Entry
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment