feat: 添加 ESLint 配置并优化代码风格,移除未使用的功能

This commit is contained in:
Elysia
2026-02-12 18:31:09 +08:00
parent b43c6117ec
commit e11740ad4c
14 changed files with 65 additions and 114 deletions

View File

@@ -123,7 +123,8 @@ const { appendLoading, removeLoading } = useLoading()
domReady().then(appendLoading)
window.onmessage = (ev) => {
ev.data.payload === 'removeLoading' && removeLoading()
if (ev.data.payload === 'removeLoading')
removeLoading()
}
setTimeout(removeLoading, 4999)