fix: 切换背景404问题

This commit is contained in:
lww9029
2026-01-14 11:18:41 +08:00
parent 0a8121e849
commit ecd3e12a41
+1 -1
View File
@@ -275,7 +275,7 @@ class UIController {
this.currentBackgroundIndex = (this.currentBackgroundIndex + 1) % this.backgroundImages.length;
const backgroundContainer = document.querySelector('.background-container');
if (backgroundContainer) {
backgroundContainer.style.backgroundImage = `url('../images/${this.backgroundImages[this.currentBackgroundIndex]}')`;
backgroundContainer.style.backgroundImage = `url('./images/${this.backgroundImages[this.currentBackgroundIndex]}')`;
}
}