Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
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
linweijiong
jinfa-platform
Commits
d7a67bd0
Commit
d7a67bd0
authored
Jun 23, 2021
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改消息已读接口
parent
486dbb79
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
34 deletions
+1
-34
index.tsx
src/pages/balance/components/ModalContainer/index.tsx
+0
-33
index.tsx
src/pages/systemSetting/message/index.tsx
+1
-1
No files found.
src/pages/balance/components/ModalContainer/index.tsx
deleted
100644 → 0
View file @
486dbb79
import
React
,
{
Component
}
from
'react'
;
class
ModalContainer
extends
Component
{
state
=
{
visible
:
false
}
handleCancel
=
()
=>
{
this
.
setState
({
visible
:
false
})
}
show
=
()
=>
{
this
.
setState
({
visible
:
true
})
}
render
()
{
const
{
visible
}
=
this
.
state
;
const
{
children
}
=
this
.
props
;
return
(
children
({
visible
:
visible
,
show
:
this
.
show
,
cancel
:
this
.
handleCancel
})
)
}
}
export
default
ModalContainer
;
src/pages/systemSetting/message/index.tsx
View file @
d7a67bd0
...
...
@@ -36,7 +36,7 @@ const Message: React.FC<{}> = () => {
}
const
handleRead
=
async
(
id
:
number
,
url
:
string
)
=>
{
const
{
data
,
code
}
=
await
PublicApi
.
post
Report
MessageMemberRead
({
id
:
id
},
{
ctlType
:
'none'
})
const
{
data
,
code
}
=
await
PublicApi
.
post
Message
MessageMemberRead
({
id
:
id
},
{
ctlType
:
'none'
})
if
(
url
)
{
if
(
/http/
.
test
(
url
))
{
location
.
href
=
url
...
...
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