diff --git a/frontend/src/post/editpost.tsx b/frontend/src/post/editpost.tsx index 40f0644db30964de148226328eecf809833f6f0e..0df779988976f3ce54d95828057d1843db5fc5bc 100644 --- a/frontend/src/post/editpost.tsx +++ b/frontend/src/post/editpost.tsx @@ -54,9 +54,9 @@ export function EditPost() { for (var i = 0; i < filelist.length; i++) { formdata.append("picture", filelist?.[i]); } - console.log("one file update before"); + // console.log("one file update before"); const res = await postApi.updateImgAndPost(user._id, formdata); - console.log("one file update", res); + // console.log("one file update", res); return res; } }; @@ -72,7 +72,7 @@ export function EditPost() { const updateRes = await updateImg2Db(file); // console.log("find newfilename", updateRes); navigate( - { pathname: `/post/${post._id}` }, + { pathname: `/posts/${post._id}` }, { replace: true, state: updateRes } );