Merge pull request #75 from liumingye/patch-1

domReady 使用 .then
This commit is contained in:
草鞋没号 2022-03-14 18:36:45 +08:00 committed by GitHub
commit b9e6a3d183
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()
})()