数据选项卡切换优化

This commit is contained in:
于肖磊
2025-02-08 15:07:03 +08:00
parent 7aa546dfb1
commit ab964c4989
2 changed files with 2 additions and 2 deletions

View File

@ -239,7 +239,7 @@ const set_offset_top = (index: number) => {
}
})
}
})
}, 0)
}
// 选项卡点击
const tabs_list_click = (item: any, index: number) => {

View File

@ -131,7 +131,7 @@ const scrollTop = ref<HTMLElement | null>(null);
const set_offset_top = (scrollY: number) => {
if (scrollTop.value) {
// 选中的滚动到指定位置
scrollTop.value.scrollTo({ top: scrollY - 150, behavior: 'smooth' });
scrollTop.value.scrollTo({ top: scrollY - 160, behavior: 'smooth' });
}
};
</script>