mirror of
https://github.com/electron-vite/electron-vite-vue
synced 2025-01-31 20:16:36 +08:00
chore: use postMessage
instead of window.removeLoading
This commit is contained in:
parent
ef7022696b
commit
67cf1e7f31
@ -1,7 +1,9 @@
|
|||||||
import { createApp } from 'vue'
|
import { createApp } from 'vue'
|
||||||
import App from './App.vue'
|
import App from './App.vue'
|
||||||
import './samples/node-api'
|
// import './samples/node-api'
|
||||||
|
|
||||||
createApp(App)
|
createApp(App)
|
||||||
.mount('#app')
|
.mount('#app')
|
||||||
.$nextTick(window.removeLoading)
|
.$nextTick(() => {
|
||||||
|
postMessage({ payload: 'removeLoading' }, '*')
|
||||||
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user