feat: 加入预加载动画

This commit is contained in:
草鞋没号
2020-12-24 18:38:33 +08:00
parent 519728e0cd
commit 0ea62ef46a
6 changed files with 228 additions and 8 deletions

View File

@@ -10,4 +10,4 @@ console.log('ipcRenderer:', ipcRenderer)
console.log('Store', store)
console.log('electron is dev', isdev)
createApp(App as any).mount('#app')
createApp(App as any).mount('#app').$nextTick(window.ClosePreloadLoading)

View File

@@ -2,3 +2,8 @@ declare module '*.vue' {
import Vue from 'vue'
export default Vue
}
interface Window {
/** 关闭预加载动画 */
ClosePreloadLoading: () => void
}