style: style optimization

This commit is contained in:
eoao
2026-05-08 23:55:56 +08:00
parent 8bf9adbd13
commit c14615d1ef
3 changed files with 2 additions and 12 deletions

View File

@@ -174,21 +174,12 @@ router.afterEach((to) => {
})
function removeLoading() {
if (window.innerWidth < 1025) {
document.documentElement.style.setProperty('--loading-hide-transition', 'none')
}
const doc = document.getElementById('loading-first');
if (!doc) {
return;
}
doc.classList.add('loading-complete')
setTimeout(() => {
doc.classList.add('loading-hide')
setTimeout(() => {
doc.remove()
}, 1000)
}, 200)
doc.remove()
}
export default router