fix(项目管理): 修复文件管理查看文件详情时展示的是上一个文件的缺陷
This commit is contained in:
parent
b3f1d3e6b8
commit
1924158c09
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue