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-05-08 14:35:38 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f3a3fda44d8e13929d2d6eb9258ac4f97a13323a
f3a3fda4
1 parent
b0b26af6
fix(StudyDetailPage): 调整滚动逻辑中的偏移量
在滚动逻辑中增加30像素的偏移量,以确保标签切换更加准确
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/views/study/StudyDetailPage.vue
src/views/study/StudyDetailPage.vue
View file @
f3a3fda
...
...
@@ -320,7 +320,7 @@ const handleScroll = () => {
if (!introElement || !commentElement) return;
const scrollTop = window.scrollY;
const commentOffset = commentElement.offsetTop - parseInt(topWrapperHeight.value)
;
const commentOffset = commentElement.offsetTop - parseInt(topWrapperHeight.value)
- 30; // 30是一个偏移量
// 根据滚动位置更新activeTab
if (scrollTop >= commentOffset) {
...
...
Please
register
or
login
to post a comment