1.excel下面的sheet名称未被翻译
deploy-hxtesting / build-and-deploy (push) Successful in 1m15s

2.预览翻译文件时无法预览图片!
3.上传文件都要存到知识库中!可被问答
4.在SIP翻译专家agent下上传文件后默认给提示文案可直接发送
This commit is contained in:
runny committed 2026-12-01 06:26:12 +08:00
1 parent 8c3d0ee31c
commit 90b843b4e8
9 files changed
+308 -75

No files matched your search

+15 -1
View File
@@ -87,6 +87,20 @@ const imageUploading = ref(false);
// Attachment upload state
const attachmentUploadRef = ref<InstanceType<typeof AttachmentUpload>>();
const uploadedAttachments = ref<AttachmentFile[]>([]);
// SIP translator agent: once its workbook attachment finishes uploading, the
// prompt tells the user they can send as-is — the agent drives the rest.
const SIP_TRANSLATOR_AGENT_ID = 'builtin-sip-translator';
const inputPlaceholder = computed(() => {
if (
selectedAgentId.value === SIP_TRANSLATOR_AGENT_ID &&
uploadedAttachments.value.length > 0 &&
uploadedAttachments.value.every(item => item.documentId && item.status !== 'failed')
) {
return '翻译文件已就绪,直接发送即可开始翻译';
}
return t('input.placeholder');
});
const CHAT_FILE_DROP_EVENT = 'academy:chat-file-drop';
const isImageFile = (file: File) => {
@@ -2843,7 +2857,7 @@ defineExpose({
</div>
<!-- 实际输入框 -->
<t-textarea ref="textareaRef" v-model="query" :placeholder="t('input.placeholder')" name="description" :autosize="true"
<t-textarea ref="textareaRef" v-model="query" :placeholder="inputPlaceholder" name="description" :autosize="true"
@keydown="onKeydown" @input="onInput" @compositionstart="onCompositionStart" @compositionend="onCompositionEnd"
@paste="onPaste" />