Compare commits

...

2 Commits

2 changed files with 17 additions and 5 deletions

View File

@ -297,6 +297,12 @@ body {
background: #f0fff4;
border-radius: 6px;
border-left: 3px solid #27ae60;
white-space: pre-wrap;
word-wrap: break-word;
max-height: 300px;
overflow-y: auto;
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
line-height: 1.4;
}
.task-error {
@ -307,6 +313,12 @@ body {
background: #fff5f5;
border-radius: 6px;
border-left: 3px solid #e74c3c;
white-space: pre-wrap;
word-wrap: break-word;
max-height: 200px;
overflow-y: auto;
font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
line-height: 1.4;
}
.error-message {

View File

@ -130,16 +130,16 @@ function updateRecentTasks(tasks) {
if (typeof parsed === 'object') {
// 如果是对象,尝试提取关键信息
if (parsed.images && Array.isArray(parsed.images)) {
return `生成图片: ${parsed.images.length}`;
return `生成图片: ${parsed.images.length}\n完整结果: ${JSON.stringify(parsed, null, 2)}`;
}
if (parsed.output && typeof parsed.output === 'object') {
return `输出数据: ${Object.keys(parsed.output).length}`;
return `输出数据: ${Object.keys(parsed.output).length}\n完整结果: ${JSON.stringify(parsed, null, 2)}`;
}
return `结果数据: ${JSON.stringify(parsed).substring(0, 100)}...`;
return `完整结果: ${JSON.stringify(parsed, null, 2)}`;
}
return `结果: ${String(result).substring(0, 100)}...`;
return `完整结果: ${String(result)}`;
} catch {
return `结果: ${String(result).substring(0, 100)}...`;
return `完整结果: ${String(result)}`;
}
};