domReady 使用 .then

This commit is contained in:
刘明野 2022-03-14 17:22:08 +08:00 committed by GitHub
parent 8f2d9f5c48
commit 6a6b11cc2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,8 +4,4 @@ import { useLoading } from './loading'
const { appendLoading, removeLoading } = useLoading() const { appendLoading, removeLoading } = useLoading()
window.removeLoading = removeLoading; window.removeLoading = removeLoading;
;(async () => { domReady().then(appendLoading)
await domReady()
appendLoading()
})()