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

View File

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