WIP: 게시글 등록, 수정 작업중

This commit is contained in:
2025-05-02 14:40:35 +09:00
parent 0b0d567072
commit 9b20dc4847
12 changed files with 290 additions and 186 deletions
@@ -1,3 +1,4 @@
export { getCookie, setCookie, removeCookie } from "./cookie";
export { useAlertStore } from "./use-alert-store";
export { useMenuStore } from "./use-menu-store";
export { useUserStore } from "./use-user-store";
@@ -34,7 +34,7 @@ export const useTus = () => {
},
onProgress(bytesUploaded, bytesTotal) {
const percentage = ((bytesUploaded / bytesTotal) * 100).toFixed(2);
setProgress(Number(percentage));
setProgress(parseInt(percentage));
},
onAfterResponse(req, res) {
const fileInfo = res.getHeader("X-File-Info");