mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-19 11:56:36 +08:00
domReady 使用 .then
This commit is contained in:
parent
8f2d9f5c48
commit
6a6b11cc2f
@ -4,8 +4,4 @@ import { useLoading } from './loading'
|
||||
const { appendLoading, removeLoading } = useLoading()
|
||||
window.removeLoading = removeLoading;
|
||||
|
||||
;(async () => {
|
||||
await domReady()
|
||||
|
||||
appendLoading()
|
||||
})()
|
||||
domReady().then(appendLoading)
|
||||
|
Loading…
x
Reference in New Issue
Block a user