Skip to content

Commit

Permalink
fix(portal-web): 修复文件编辑保存未携带路径的问题 (#1009)
Browse files Browse the repository at this point in the history
修复文件保存上传时未携带路径导致文件保存错误的问题。
  • Loading branch information
Miracle575 authored Nov 26, 2023
1 parent 9694576 commit ce31a2c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/fifty-flowers-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@scow/portal-web": patch
---

修复文件编辑保存未携带路径的问题
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export const FileEditModal: React.FC<Props> = ({ previewFile, setPreviewFile })
const formData = new FormData();
formData.append("file", blob);

await fetch(urlToUpload(clusterId, filename), {
await fetch(urlToUpload(clusterId, filePath), {
method: "POST",
body: formData,
}).then((response) => {
Expand Down

0 comments on commit ce31a2c

Please sign in to comment.