From 6a6b11cc2fafdfa08b961d0f230975717562fbe8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=98=8E=E9=87=8E?= <898310895@qq.com> Date: Mon, 14 Mar 2022 17:22:08 +0800 Subject: [PATCH] =?UTF-8?q?domReady=20=E4=BD=BF=E7=94=A8=20.then?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/preload/index.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/preload/index.ts b/packages/preload/index.ts index d60cddf..424096f 100644 --- a/packages/preload/index.ts +++ b/packages/preload/index.ts @@ -4,8 +4,4 @@ import { useLoading } from './loading' const { appendLoading, removeLoading } = useLoading() window.removeLoading = removeLoading; -;(async () => { - await domReady() - - appendLoading() -})() \ No newline at end of file +domReady().then(appendLoading)