rameCache.size > maxCacheSize) {
                // 移除距离当前页面最远的缓存
                const sortedIndices = Array.from(slideFrameCache.keys()).sort((a, b) => {
                    const distA = Math.abs(a - currentSlideIndex);
                    const distB = Math.abs(b - currentSlideIndex);
                    return distB - distA; // 距离远的排在前面
                });

                // 移除最远的缓存
                const toRemove = sortedIndices.slice(0, slideFra