更新 App.vue

This commit is contained in:
jxxghp
2025-07-06 19:52:37 +08:00
committed by GitHub
parent d50e67f3bc
commit f01c61e09f
+1 -7
View File
@@ -126,14 +126,8 @@ function startBackgroundRotation() {
function animateAndRemoveLoader() { function animateAndRemoveLoader() {
const loadingBg = document.querySelector('#loading-bg') as HTMLElement const loadingBg = document.querySelector('#loading-bg') as HTMLElement
if (loadingBg) { if (loadingBg) {
// 添加完成动画类
loadingBg.classList.add('loading-complete')
// 等待动画完成后移除
setTimeout(() => {
removeEl('#loading-bg') removeEl('#loading-bg')
document.documentElement.style.removeProperty('background') document.documentElement.style.removeProperty('background')
}, 800)
} }
} }
@@ -178,7 +172,7 @@ async function removeLoadingWithStateCheck() {
globalLoadingStateManager.reset() globalLoadingStateManager.reset()
animateAndRemoveLoader() animateAndRemoveLoader()
} }
} }
// 加载背景图片 // 加载背景图片
async function loadBackgroundImages(retryCount = 0) { async function loadBackgroundImages(retryCount = 0) {