diff --git a/packages/preload/index.ts b/packages/preload/index.ts index 424096f..3368dbd 100644 --- a/packages/preload/index.ts +++ b/packages/preload/index.ts @@ -2,6 +2,6 @@ import { domReady } from './utils' import { useLoading } from './loading' const { appendLoading, removeLoading } = useLoading() -window.removeLoading = removeLoading; +window.removeLoading = removeLoading domReady().then(appendLoading)