Skip to content

Commit

Permalink
fix: 修复最大滚动tag值错误
Browse files Browse the repository at this point in the history
  • Loading branch information
yuntian001 committed Aug 18, 2023
1 parent 33dfb3b commit 30e07bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layout/components/header/components/tagBar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ const jump = (index: number) => {
return;
}
if (index === tagsRef.value.length - 1) {
setScrollLeft(tagsRef.value[tagsRef.value.length - 1].offsetLeft);
setScrollLeft(max.value);
return;
}
const parentWidth = scrollbarRef.value!.$el.clientWidth;
Expand Down

0 comments on commit 30e07bf

Please sign in to comment.