@@ -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>