From 10002022ac3ee39497feab7570224ff23594f44a Mon Sep 17 00:00:00 2001 From: baiqi Date: Fri, 13 Dec 2024 17:43:48 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=BB=84=E4=BB=B6):=20=E9=99=84=E4=BB=B6?= =?UTF-8?q?=E8=BD=AC=E5=AD=98=E6=96=87=E4=BB=B6=E5=90=8E=E7=BC=80=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/ms-add-attachment/saveAsFilePopover.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/src/components/business/ms-add-attachment/saveAsFilePopover.vue b/frontend/src/components/business/ms-add-attachment/saveAsFilePopover.vue index 01927c0246..9d7a33d093 100644 --- a/frontend/src/components/business/ms-add-attachment/saveAsFilePopover.vue +++ b/frontend/src/components/business/ms-add-attachment/saveAsFilePopover.vue @@ -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(); }