fix(项目管理): 修复文件管理查看文件详情时展示的是上一个文件的缺陷

This commit is contained in:
Jianguo-Genius 2024-04-03 11:07:08 +08:00 committed by 刘瑞斌
parent b3f1d3e6b8
commit 1924158c09
2 changed files with 3 additions and 5 deletions

View File

@ -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);
}

View File

@ -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(