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-06-11 20:49:28 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
5e7e116de42fad000fba243629acee47594d238a
5e7e116d
1 parent
57b4ad07
fix(StudyDetailPage): 修复图片附件或无附件课程的学习时长埋点问题
在课程类型为图片或无类型时,进入页面后立即执行学习时长埋点记录
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletions
src/views/study/StudyDetailPage.vue
src/views/study/StudyDetailPage.vue
View file @
5e7e116
...
...
@@ -398,6 +398,16 @@ const handleLessonClick = async (lesson) => {
bottomWrapperHeight.value = bottomWrapper.clientHeight + 'px';
}
});
// 图片附件或者附件不存在
// 进入后直接执行学习时长埋点
if(course.value?.course_type === 'image' || !course.value?.course_type) {
// 新增记录
let paramsObj = {
schedule_id: courseId.value,
}
addRecord(paramsObj);
}
}
};
...
...
@@ -479,7 +489,7 @@ onMounted(async () => {
addRecord(paramsObj);
}
}
})
})
;
// 提交评论
// 切换点赞状态
...
...
Please
register
or
login
to post a comment