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