diff --git a/frontend/electron/services/pythonService.ts b/frontend/electron/services/pythonService.ts
index e700959..121c2de 100644
--- a/frontend/electron/services/pythonService.ts
+++ b/frontend/electron/services/pythonService.ts
@@ -516,7 +516,7 @@ export async function startBackend(appRoot: string): Promise<{ success: boolean;
// ✅ 重要:也要监听 stderr
backendProcess.stderr?.on('data', data => {
const output = data.toString()
- console.error('Backend error:', output) // 保留原有日志
+ console.log('Backend output:', output) // 保留原有日志
// ✅ 在 stderr 中也检查启动标志
if (output.includes('Uvicorn running') || output.includes('36163')) {
@@ -526,7 +526,7 @@ export async function startBackend(appRoot: string): Promise<{ success: boolean;
})
backendProcess.stderr?.on('data', data => {
- console.error('Backend error:', data.toString())
+ console.log('Backend output:', data.toString())
})
backendProcess.on('error', error => {
diff --git a/frontend/src/api/models/GeneralConfig_Script.ts b/frontend/src/api/models/GeneralConfig_Script.ts
index 9d1f4d4..8367c45 100644
--- a/frontend/src/api/models/GeneralConfig_Script.ts
+++ b/frontend/src/api/models/GeneralConfig_Script.ts
@@ -3,57 +3,56 @@
/* tslint:disable */
/* eslint-disable */
export type GeneralConfig_Script = {
- /**
- * 脚本可执行文件路径
- */
- ScriptPath?: (string | null);
- /**
- * 脚本启动附加命令参数
- */
- Arguments?: (string | null);
- /**
- * 是否追踪脚本子进程
- */
- IfTrackProcess?: (boolean | null);
- /**
- * 配置文件路径
- */
- ConfigPath?: (string | null);
- /**
- * 配置文件类型: 单个文件, 文件夹
- */
- ConfigPathMode?: ('File' | 'Folder' | null);
- /**
- * 更新配置时机, 从不, 仅成功时, 仅失败时, 任务结束时
- */
- UpdateConfigMode?: ('Never' | 'Success' | 'Failure' | 'Always' | null);
- /**
- * 日志文件路径
- */
- LogPath?: (string | null);
- /**
- * 日志文件名格式
- */
- LogPathFormat?: (string | null);
- /**
- * 日志时间戳开始位置
- */
- LogTimeStart?: (number | null);
- /**
- * 日志时间戳结束位置
- */
- LogTimeEnd?: (number | null);
- /**
- * 日志时间戳格式
- */
- LogTimeFormat?: (string | null);
- /**
- * 成功时日志
- */
- SuccessLog?: (string | null);
- /**
- * 错误时日志
- */
- ErrorLog?: (string | null);
-};
-
+ /**
+ * 脚本可执行文件路径
+ */
+ ScriptPath?: string | null
+ /**
+ * 脚本启动附加命令参数
+ */
+ Arguments?: string | null
+ /**
+ * 是否追踪脚本子进程
+ */
+ IfTrackProcess?: boolean | null
+ /**
+ * 配置文件路径
+ */
+ ConfigPath?: string | null
+ /**
+ * 配置文件类型: 单个文件, 文件夹
+ */
+ ConfigPathMode?: 'File' | 'Folder' | null
+ /**
+ * 更新配置时机, 从不, 仅成功时, 仅失败时, 任务结束时
+ */
+ UpdateConfigMode?: 'Never' | 'Success' | 'Failure' | 'Always' | null
+ /**
+ * 日志文件路径
+ */
+ LogPath?: string | null
+ /**
+ * 日志文件名格式
+ */
+ LogPathFormat?: string | null
+ /**
+ * 日志时间戳开始位置
+ */
+ LogTimeStart?: number | null
+ /**
+ * 日志时间戳结束位置
+ */
+ LogTimeEnd?: number | null
+ /**
+ * 日志时间戳格式
+ */
+ LogTimeFormat?: string | null
+ /**
+ * 成功时日志
+ */
+ SuccessLog?: string | null
+ /**
+ * 错误时日志
+ */
+ ErrorLog?: string | null
+}
diff --git a/frontend/src/components/LogViewer.vue b/frontend/src/components/LogViewer.vue
deleted file mode 100644
index c890ad5..0000000
--- a/frontend/src/components/LogViewer.vue
+++ /dev/null
@@ -1,344 +0,0 @@
-
- {{
- JSON.stringify(log.data, null, 2)
- }}
-
查看应用运行日志,用于问题排查和调试
- -