Przeglądaj źródła

修正updateFile时的cid传值错误

dev
kim131 4 lat temu
rodzic
commit
0021f7fe51
1 zmienionych plików z 4 dodań i 3 usunięć
  1. +4
    -3
      src/services/system.js

+ 4
- 3
src/services/system.js Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz