Compare commits
No commits in common. "288f8f6def9dc4893c114d6b3b5535875911b80f" and "9ad4d09f2a50c92a749c9690bc454690ec2f759b" have entirely different histories.
288f8f6def
...
9ad4d09f2a
|
|
@ -297,12 +297,6 @@ 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 {
|
||||||
|
|
@ -313,12 +307,6 @@ 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} 张\n完整结果: ${JSON.stringify(parsed, null, 2)}`;
|
return `生成图片: ${parsed.images.length} 张`;
|
||||||
}
|
}
|
||||||
if (parsed.output && typeof parsed.output === 'object') {
|
if (parsed.output && typeof parsed.output === 'object') {
|
||||||
return `输出数据: ${Object.keys(parsed.output).length} 项\n完整结果: ${JSON.stringify(parsed, null, 2)}`;
|
return `输出数据: ${Object.keys(parsed.output).length} 项`;
|
||||||
}
|
}
|
||||||
return `完整结果: ${JSON.stringify(parsed, null, 2)}`;
|
return `结果数据: ${JSON.stringify(parsed).substring(0, 100)}...`;
|
||||||
}
|
}
|
||||||
return `完整结果: ${String(result)}`;
|
return `结果: ${String(result).substring(0, 100)}...`;
|
||||||
} catch {
|
} catch {
|
||||||
return `完整结果: ${String(result)}`;
|
return `结果: ${String(result).substring(0, 100)}...`;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue