Caner 2 years ago
parent
commit
02a44e1a5e
1 changed files with 1 additions and 9 deletions
  1. 1 9
      src/App.vue

+ 1 - 9
src/App.vue

@@ -2,13 +2,5 @@
   <router-view />
 </template>
 <script setup lang='ts'>
-import { onMounted } from 'vue'
-
-onMounted(() => {
-  // 通知主进程是否完成渲染
-  const electron = window.$electron || null
-  if (electron) {
-    electron.send('close-loading')
-  }
-})
+window.$electron.send('close-loading')
 </script>