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
2025-12-19 14:56:12 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
622cf71efe7af124ade031f0afd18b0354f3467d
622cf71e
1 parent
f29f1a7e
fix(打卡页面): 在离开页面时清除lastTaskId以强制刷新
关键修改是在路由离开时清除了lastTaskId,确保即使相同ID的任务再次进入也会触发刷新
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
src/views/checkin/IndexCheckInPage.vue
src/views/checkin/IndexCheckInPage.vue
View file @
622cf71
<!--
* @Date: 2025-05-29 15:34:17
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-12-19
01:21:14
* @LastEditTime: 2025-12-19
14:55:13
* @FilePath: /mlaj/src/views/checkin/IndexCheckInPage.vue
* @Description: 文件描述
-->
...
...
@@ -673,6 +673,8 @@ onBeforeRouteLeave((to, from) => {
// 检查目标路径是否是打卡详情页
if (!to.path.startsWith('/checkin/detail')) {
sessionStorage.removeItem('collapsible_calendar_filter_state')
// 关键:清除 lastTaskId,这样下次即使同ID进入,也会被视为新任务触发刷新
lastTaskId.value = ''
}
})
...
...
Please
register
or
login
to post a comment