fix profile

This commit is contained in:
jxxghp
2024-07-09 19:13:30 +08:00
parent e946037c57
commit 474db2be0d
2 changed files with 23 additions and 7 deletions

View File

@@ -54,6 +54,8 @@ async function fetchBackgroundImage() {
try {
backgroundImages.value = await api.get('/login/wallpapers')
if (backgroundImages.value && backgroundImages.value.length > 0) {
// 随机打乱排序
backgroundImages.value.sort(() => Math.random() - 0.5)
backgroundImageUrl.value = backgroundImages.value[0]
}
} catch (e) {