mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-28 03:39:46 +08:00
在背景图片加载失败时添加重试机制,3秒后自动重试加载背景图片
This commit is contained in:
@@ -166,7 +166,10 @@ function loadBackgroundImages() {
|
||||
startBackgroundRotation()
|
||||
})
|
||||
.catch(() => {
|
||||
console.error('加载背景图片失败')
|
||||
// 3秒后重试
|
||||
setTimeout(() => {
|
||||
loadBackgroundImages()
|
||||
}, 3000)
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user