Skip to content

Commit

Permalink
sync with main repo
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Oct 11, 2024
1 parent 08a9154 commit 726fcc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,7 @@
input.placeholder = '密码错误';
} else {
window.fileCache.set(newFiles.parent, newFiles);
window.fileCache.set(`${newFiles.parent}/.upload`, passwd);
fetchFileList(newFiles.parent);
}
}
Expand Down Expand Up @@ -1716,7 +1717,7 @@
sendRequest(
window.api.method,
window.api.url + '?upload=' + odPath,
JSON.stringify({ files: currentPage }),
JSON.stringify({ secret: window.fileCache.get(`${odPath}/.upload`) || '', files: currentPage }),
window.api.headers,
(response) => {
const uploadLinks = JSON.parse(response).files;
Expand Down

0 comments on commit 726fcc0

Please sign in to comment.