Compare commits
2 Commits
9ad4d09f2a
...
288f8f6def
| Author | SHA1 | Date |
|---|---|---|
|
|
288f8f6def | |
|
|
26bfea981f |
|
|
@ -297,6 +297,12 @@ body {
|
||||||
background: #f0fff4;
|
background: #f0fff4;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
border-left: 3px solid #27ae60;
|
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 {
|
.task-error {
|
||||||
|
|
@ -307,6 +313,12 @@ body {
|
||||||
background: #fff5f5;
|
background: #fff5f5;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
border-left: 3px solid #e74c3c;
|
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 {
|
.error-message {
|
||||||
|
|
|
||||||
|
|
@ -130,16 +130,16 @@ function updateRecentTasks(tasks) {
|
||||||
if (typeof parsed === 'object') {
|
if (typeof parsed === 'object') {
|
||||||
// 如果是对象,尝试提取关键信息
|
// 如果是对象,尝试提取关键信息
|
||||||
if (parsed.images && Array.isArray(parsed.images)) {
|
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') {
|
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 {
|
} catch {
|
||||||
return `结果: ${String(result).substring(0, 100)}...`;
|
return `完整结果: ${String(result)}`;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue