fix(组件): 附件转存文件后缀修复
This commit is contained in:
parent
8d86cdee45
commit
10002022ac
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue