Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
swifteditor
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fukai
swifteditor
Commits
6bc72d60
Commit
6bc72d60
authored
Oct 19, 2022
by
潘际乾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加MT、MX报文入口
parent
bd6212b0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
1 deletions
+32
-1
index.js
src/routes/index.js
+4
-1
Entry.js
src/swift/Entry.js
+28
-0
No files found.
src/routes/index.js
View file @
6bc72d60
...
@@ -13,6 +13,7 @@ import SWFPage from "../swift/SWFPage2"
...
@@ -13,6 +13,7 @@ import SWFPage from "../swift/SWFPage2"
import
LeadPage
from
"../swift/LeadPage"
import
LeadPage
from
"../swift/LeadPage"
import
Preview
from
"../swift/Preview"
import
Preview
from
"../swift/Preview"
import
Result
from
"../swift/Result"
import
Result
from
"../swift/Result"
import
Entry
from
"../swift/Entry"
function
validate
()
{
function
validate
()
{
// 在路由群载入时做 filter 处理
// 在路由群载入时做 filter 处理
...
@@ -24,8 +25,10 @@ const Routes = ({ history }) =>
...
@@ -24,8 +25,10 @@ const Routes = ({ history }) =>
<
Route
path
=
"/"
onEnter
=
{
validate
}
>
<
Route
path
=
"/"
onEnter
=
{
validate
}
>
<
IndexRedirect
to
=
"home"
/>
<
IndexRedirect
to
=
"home"
/>
<
Route
component
=
{
App
}
>
<
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
=
"home/:mctid"
component
=
{
LeadPage
}
/
>
<
Route
path
=
"lead/:mctid"
component
=
{
LeadPage
}
/
>
<
Route
path
=
"lead/:mctid"
component
=
{
LeadPage
}
/
>
...
...
src/swift/Entry.js
0 → 100644
View file @
6bc72d60
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment