mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 15:36:49 +08:00
在 fetchBackgroundImages 函数中初始化 activeImageIndex 为 0,以确保背景图片加载时的索引正确。
This commit is contained in:
@@ -82,6 +82,7 @@ function updateHtmlThemeAttribute(themeName: string) {
|
|||||||
async function fetchBackgroundImages() {
|
async function fetchBackgroundImages() {
|
||||||
try {
|
try {
|
||||||
backgroundImages.value = await api.get(`/login/wallpapers`)
|
backgroundImages.value = await api.get(`/login/wallpapers`)
|
||||||
|
activeImageIndex.value = 0
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e)
|
console.error(e)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user