Browse Source

修正updateFile时的cid传值错误

dev
kim131 4 years ago
parent
commit
0021f7fe51
1 changed files with 4 additions and 3 deletions
  1. +4
    -3
      src/services/system.js

+ 4
- 3
src/services/system.js View File

@@ -633,9 +633,10 @@ const system = {
onProgressHandler(progressData);
if(process !== 100 || !hash) return;
socket.close();
const copyFile = firstCharToUpperCase({ ...file, ipfsCid: hash, size: +size, ModifyUserId: sessionStorage.userId,
historyCurrentIpfsCid: isConflict ? hash : commitHistoryHash,
historyPreIpfsCid
const copyFile = firstCharToUpperCase({ ...file, size: +size, ModifyUserId: sessionStorage.userId,
historyCurrentIpfsCid: commitHistoryHash,
ipfsCid: isConflict ? file.ipfsCid : hash,
historyPreIpfsCid,
});

const res = await fetchApi('file/updateFile', copyFile);


Loading…
Cancel
Save