chore: 清除所有 console.log,主进程日志接入执行日志面板

This commit is contained in:
thzxx
2026-04-07 19:49:30 +08:00
parent d524339634
commit 34a6b9fd0b
5 changed files with 26 additions and 6 deletions
+1
View File
@@ -229,6 +229,7 @@ export interface MetonaDesktopAPI {
onTrayAction: (callback: (action: string) => void) => void;
onAppQuit: (callback: () => void) => void;
removeAllListeners: (channel: string) => void;
onMainLog: (callback: (data: { level: string; message: string; detail?: string }) => void) => void;
workspace: {
getDir: () => Promise<{ dir: string; defaultDir: string }>;
setDir: (dir: string) => Promise<{ success: boolean; dir?: string; error?: string }>;