From 1924158c09fafae9a3d4d598aa0b983364624d93 Mon Sep 17 00:00:00 2001 From: Jianguo-Genius Date: Wed, 3 Apr 2024 11:07:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E4=BB=B6=E7=AE=A1=E7=90=86=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E6=96=87=E4=BB=B6=E8=AF=A6=E6=83=85=E6=97=B6=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E7=9A=84=E6=98=AF=E4=B8=8A=E4=B8=80=E4=B8=AA=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/metersphere/project/service/FileMetadataService.java | 4 ---- .../project-management/fileManagement/components/rightBox.vue | 4 +++- 2 files changed, 3 insertions(+), 5 deletions(-) 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(