mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-08 01:06:41 +08:00
更新 App.vue
This commit is contained in:
+7
-13
@@ -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) {
|
||||||
// 添加完成动画类
|
removeEl('#loading-bg')
|
||||||
loadingBg.classList.add('loading-complete')
|
document.documentElement.style.removeProperty('background')
|
||||||
|
|
||||||
// 等待动画完成后移除
|
|
||||||
setTimeout(() => {
|
|
||||||
removeEl('#loading-bg')
|
|
||||||
document.documentElement.style.removeProperty('background')
|
|
||||||
}, 800)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -173,12 +167,12 @@ async function removeLoadingWithStateCheck() {
|
|||||||
|
|
||||||
// 检查未读消息
|
// 检查未读消息
|
||||||
checkAndEmitUnreadMessages()
|
checkAndEmitUnreadMessages()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// 即使出错也要移除加载界面
|
// 即使出错也要移除加载界面
|
||||||
globalLoadingStateManager.reset()
|
globalLoadingStateManager.reset()
|
||||||
animateAndRemoveLoader()
|
animateAndRemoveLoader()
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// 加载背景图片
|
// 加载背景图片
|
||||||
async function loadBackgroundImages(retryCount = 0) {
|
async function loadBackgroundImages(retryCount = 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user