fix(组件): 附件转存文件后缀修复

This commit is contained in:
baiqi 2024-12-13 17:43:48 +08:00 committed by Craftsman
parent 8d86cdee45
commit 10002022ac
1 changed files with 5 additions and 1 deletions

View File

@ -158,7 +158,11 @@
fileName: saveFileForm.value.name,
originalName: props.savingFile.name || props.savingFile.fileName || '',
});
emit('finish', res, `${saveFileForm.value.name}.${props.savingFile.name?.split('.').pop()}`);
emit(
'finish',
res,
`${saveFileForm.value.name}.${(props.savingFile.name || props.savingFile.fileName)?.split('.').pop()}`
);
Message.success(t('ms.add.attachment.saveAsSuccess'));
handleSaveFileCancel();
}