mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-06 08:06:43 +08:00
fix(App.vue): 优化页面加载时的背景移除逻辑,增加延迟以确保渲染完成
This commit is contained in:
+7
-7
@@ -42,15 +42,15 @@ if (window.Apex) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// 页面加载时,加载当前用户数据
|
|
||||||
onBeforeMount(async () => {
|
|
||||||
setTheme()
|
|
||||||
})
|
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
|
setTheme()
|
||||||
ensureRenderComplete(() => {
|
ensureRenderComplete(() => {
|
||||||
nextTick(() => removeEl('#loading-bg'))
|
nextTick(() => {
|
||||||
});
|
setTimeout(() => {
|
||||||
|
removeEl('#loading-bg')
|
||||||
|
}, 1000)
|
||||||
|
})
|
||||||
|
})
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user