feat(file-check): 新增文件资产管理与清理功能,支持上传、查询、删除及下载

This commit is contained in:
hugo committed 2026-07-14 09:14:44 +08:00
1 parent 143e054d86
commit 729546a7b7
52 files changed
+3420 -34

No files matched your search

@@ -538,6 +538,19 @@ export function useChatPage() {
showGuideSidebar: chatGuides.showSidebar,
openGuideModal: chatGuides.openModal,
...attachmentApi,
handleLocalFilesSelected: (event: Event) => {
if (shipping.handleShippingLocalFilesSelected(event)) return;
attachmentApi.handleLocalFilesSelected(event);
},
removeAttachment: (id: string) => {
const target = attachmentApi.attachments.value.find((item) => item.id === id);
if (target?.kind === 'shipping_notice') {
void shipping.removeShippingNoticeAttachment(id);
return;
}
attachmentApi.removeAttachment(id);
},
retryShippingNoticeAttachment: shipping.retryShippingNoticeAttachment,
filePreviewVisible,
previewFile,
previewFiles,