// 平滑滚动到指定元素
const scrollToCenter = (elementId) => {
    const element = document.getElementById(elementId);
    if (element) {
        element.scrollIntoView({
            behavior: 'smooth',
            block: 'center'
        });
    }
}

export default scrollToCenter