diff --git a/backend/services/project-management/src/main/java/io/metersphere/project/service/FileMetadataService.java b/backend/services/project-management/src/main/java/io/metersphere/project/service/FileMetadataService.java index f5ba29e274..eff8589d83 100644 --- a/backend/services/project-management/src/main/java/io/metersphere/project/service/FileMetadataService.java +++ b/backend/services/project-management/src/main/java/io/metersphere/project/service/FileMetadataService.java @@ -513,12 +513,8 @@ public class FileMetadataService { //通过refId批量更新 FileMetadataExample example = new FileMetadataExample(); example.createCriteria().andRefIdEqualTo(oldFile.getRefId()).andLatestEqualTo(true); - FileMetadata updateModel = new FileMetadata(); updateModel.setLatest(false); - updateModel.setUpdateTime(System.currentTimeMillis()); - updateModel.setUpdateUser(operator); - fileMetadataMapper.updateByExampleSelective(updateModel, example); } diff --git a/frontend/src/views/project-management/fileManagement/components/rightBox.vue b/frontend/src/views/project-management/fileManagement/components/rightBox.vue index a02a7c98e7..fa8024fe7e 100644 --- a/frontend/src/views/project-management/fileManagement/components/rightBox.vue +++ b/frontend/src/views/project-management/fileManagement/components/rightBox.vue @@ -1022,9 +1022,11 @@ const activeFileIndex = ref(0); async function openFileDetail(id: string, index: number) { - showDetailDrawer.value = true; activeFileId.value = id; activeFileIndex.value = index; + await nextTick(() => { + showDetailDrawer.value = true; + }); } watch(