lSlides) {
                loadSlideWithCache(index);
            }
        }

        // 切换自动播放
        function toggleAutoPlay() {
            const autoPlayBtn = document.getElementById('autoPlayBtn');

            if (isAutoPlaying) {
                clearInterval(autoPlayInterval);
                autoPlayBtn.innerHTML = '<i class="fas fa-play"></i>';
                autoPlayBtn.title = '自动播放';
                isAutoPlaying = false;
            } else {
                autoPlayInter