优化,贴图

This commit is contained in:
zhongluofeng
2026-08-07 18:09:13 +08:00
parent e09b0567d6
commit d09599fa95
40 changed files with 1627 additions and 493 deletions
+9
View File
@@ -41,6 +41,14 @@ export const useProcessStore = defineStore('process', () => {
})
}
/** 释放进程状态事件监听(应用退出或热重载时调用) */
const destroyListener = () => {
if (unlistenFn) {
unlistenFn()
unlistenFn = null
}
}
/** 通过模块 ID 启动进程(自动从注册表读取进程配置) */
const startByModule = async (moduleId: string): Promise<ProcessInfo> => {
const config = moduleRegistry.getConfig(moduleId)
@@ -104,6 +112,7 @@ export const useProcessStore = defineStore('process', () => {
return {
processes,
initListener,
destroyListener,
startByModule,
stopByModule,
refreshStatus,