Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
mlaj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2026-01-21 11:26:14 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
73e1ce968ca667c04d7554300d21f5d188430425
73e1ce96
1 parent
c2112396
fix: 完成任务后更新选中项的状态
在任务打卡成功时,将选中项的 is_gray 和 is_finish 状态设置为 true,以正确反映任务完成状态
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
src/components/ui/CheckInList.vue
src/components/ui/CheckInList.vue
View file @
73e1ce9
...
...
@@ -219,6 +219,8 @@ const handle_submit = async () => {
try
{
const
{
code
}
=
await
checkinTaskAPI
({
subtask_id
})
if
(
code
===
1
)
{
selected_item
.
value
.
is_gray
=
true
selected_item
.
value
.
is_finish
=
true
emit
(
'
submit
-
success
'
)
showToast
(
'打卡成功'
)
selected_item
.
value
=
null
...
...
Please
register
or
login
to post a comment