Private
Public Access
1
0

重构:文件系统模块化架构,优化应用启动流程

This commit is contained in:
2026-01-28 00:28:54 +08:00
parent 4a9b25a505
commit 8c577f70e7
123 changed files with 32030 additions and 967 deletions

View File

@@ -383,14 +383,18 @@ onMounted(async () => {
await loadConfig()
// 监听下载进度事件
window.EventsOn('download-progress', onDownloadProgress)
window.EventsOn('download-complete', onDownloadComplete)
if (window.runtime?.EventsOn) {
window.runtime.EventsOn('download-progress', onDownloadProgress)
window.runtime.EventsOn('download-complete', onDownloadComplete)
}
})
onUnmounted(() => {
// 取消事件监听
window.EventsOff('download-progress')
window.EventsOff('download-complete')
if (window.runtime?.EventsOff) {
window.runtime.EventsOff('download-progress')
window.runtime.EventsOff('download-complete')
}
})
</script>