fix(翻译预览):打开聊天附件预览抽屉或产物预览 → xlsx 网格上应出现嵌入图片(按锚点单元格定位)
deploy-hxtesting / build-and-deploy (push) Successful in 1m13s

若仍无图:按 F12 打开浏览器控制台,查找 [DocumentPreview] extract embedded images failed 告警发我——现在失败不再静默,可直接定位
This commit is contained in:
runny committed 2026-12-01 08:07:05 +08:00
1 parent 10db1be7fa
commit a6632e7b55
3 files changed
+229 -3

No files matched your search

+5 -3
View File
@@ -95,8 +95,10 @@ const inputPlaceholder = computed(() => {
if (
selectedAgentId.value === SIP_TRANSLATOR_AGENT_ID &&
uploadedAttachments.value.length > 0 &&
uploadedAttachments.value.every(item => item.documentId && item.status !== 'failed')
uploadedAttachments.value.every(item => item.status !== 'failed')
) {
// A first conversation has no session yet, so local files carry no
// documentId until send — readiness is "not failed", not "uploaded".
return '翻译文件已就绪,直接发送即可开始翻译';
}
return t('input.placeholder');
@@ -115,9 +117,9 @@ watch(
sipAutoFilled.value = false;
return;
}
const ready = items.every(a => a.documentId && a.status !== 'failed');
const ready = items.every(a => a.status !== 'failed');
if (ready && !sipAutoFilled.value && !query.value.trim()) {
query.value = '翻译';
query.value = '翻译文件已就绪,直接发送即可开始翻译';
sipAutoFilled.value = true;
}
},