ソースを参照

修正updateFile时的cid传值错误

dev
kim131 4年前
コミット
0021f7fe51
1個のファイルの変更4行の追加3行の削除
  1. +4
    -3
      src/services/system.js

+ 4
- 3
src/services/system.js ファイルの表示

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


読み込み中…
キャンセル
保存