Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
TianGongKaiWu-20251203
Project
Project
Details
Activity
Releases
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
TianGongKaiWu-20251203
Commits
84dc4c51
Commit
84dc4c51
authored
Dec 17, 2025
by
天马流星拳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 领取成功后更新对应月份的领取状态
在领取成功后,修改state中对应月份的receiveStatus为1,以正确反映领取状态
parent
86c32e49
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
myqradespage.jsx
src/pages/myQradesPage/myqradespage.jsx
+10
-0
No files found.
src/pages/myQradesPage/myqradespage.jsx
View file @
84dc4c51
...
...
@@ -169,6 +169,16 @@ class Myqradespage extends React.Component {
const
{
code
,
data
,
message
,
success
}
=
await
API
.
drawJoin
({
monthId
});
if
(
success
)
{
Toast
.
show
(
"领取成功"
);
// this.getMonthInfo();
// 领取成功后 修改 对应月份领取的状态
this
.
setState
({
monthInfo
:
this
.
state
.
monthInfo
.
map
(
item
=>
{
if
(
item
.
monthId
===
monthId
)
{
return
{
...
item
,
receiveStatus
:
1
};
}
return
item
;
})
});
this
.
getdrawIndex
(
monthId
);
}
}
...
...
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