数据选项卡切换优化

v1.2.0
于肖磊 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) => { 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) => { const set_offset_top = (scrollY: number) => {
if (scrollTop.value) { if (scrollTop.value) {
// //
scrollTop.value.scrollTo({ top: scrollY - 150, behavior: 'smooth' }); scrollTop.value.scrollTo({ top: scrollY - 160, behavior: 'smooth' });
} }
}; };
</script> </script>