diff --git a/frontend/src/components/business/ms-add-attachment/index.vue b/frontend/src/components/business/ms-add-attachment/index.vue index 5448738f09..37cdbf0ffc 100644 --- a/frontend/src/components/business/ms-add-attachment/index.vue +++ b/frontend/src/components/business/ms-add-attachment/index.vue @@ -403,7 +403,7 @@ function handleOpenSaveAs(item: TagData) { inputFilesPopoverVisible.value = false; // 这里先判定 uid 是否存在,存在则是刚上传的文件;否则是已保存过后的详情文件 - savingFile.value = fileList.value.find((file) => (file.uid || file[props.fields.id]) === item.value); + savingFile.value = fileList.value.find((file) => file.uid === item.value || file[props.fields.id] === item.value); saveFilePopoverVisible.value = true; } diff --git a/frontend/src/components/business/ms-add-attachment/saveAsFilePopover.vue b/frontend/src/components/business/ms-add-attachment/saveAsFilePopover.vue index 825c15a122..cf4b9ad80d 100644 --- a/frontend/src/components/business/ms-add-attachment/saveAsFilePopover.vue +++ b/frontend/src/components/business/ms-add-attachment/saveAsFilePopover.vue @@ -122,7 +122,7 @@ (visible) => { if (visible) { initModuleOptions(); - saveFileForm.value.name = props.savingFile?.name?.split('.').shift() || ''; + saveFileForm.value.name = (props.savingFile?.name || props.savingFile?.fileName)?.split('.').shift() || ''; } }, { diff --git a/frontend/src/components/pure/ms-form-table/index.vue b/frontend/src/components/pure/ms-form-table/index.vue index d66c2bba88..03ee49efbe 100644 --- a/frontend/src/components/pure/ms-form-table/index.vue +++ b/frontend/src/components/pure/ms-form-table/index.vue @@ -1,5 +1,5 @@