Skip to content

Commit

Permalink
fix: 数据切换后展示不正常
Browse files Browse the repository at this point in the history
closed #41
  • Loading branch information
jeremyjone committed May 24, 2023
1 parent 2506e97 commit c3cb633
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/composables/useInView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ export default () => {
if (
inView[i].hide ||
inView[i].flatIndex <= top.value ||
inView[i].flatIndex >= bottom.value
inView[i].flatIndex >= bottom.value ||
store.$data.flatData[inView[i].flatIndex].id !== inView[i].id
) {
inView.splice(i, 1);
}
Expand Down

0 comments on commit c3cb633

Please sign in to comment.