修改等待时间
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 2m40s

This commit is contained in:
Song367 2025-08-06 01:48:53 +08:00
parent c080194bac
commit a23160f35c

View File

@ -914,9 +914,11 @@ class WebRTCChat {
this.videoContainer.classList.remove('calling');
}
// 直接刷新页面清除所有缓存
console.log('通话已结束,正在刷新页面清除缓存...');
window.location.reload();
// 延迟刷新,确保服务器处理完断开逻辑
console.log('通话已结束5秒后刷新页面清除缓存...');
setTimeout(() => {
window.location.reload();
}, 2000);
}
// 清除视频缓存的方法