From b075a9d943bebb3976740ebea59951dd8afbad29 Mon Sep 17 00:00:00 2001 From: "Jonguk. Lim" Date: Sat, 20 Jul 2024 18:23:50 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EB=B3=B4=EA=B3=A0=EB=AC=B8=EC=84=9C?= =?UTF-8?q?=EA=B4=80=EB=A6=AC=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webapp/WEB-INF/jsp/adds/nims/dsuseDoc-main.jsp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseDoc-main.jsp b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseDoc-main.jsp index a4b5acb..a3c9e96 100644 --- a/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseDoc-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/adds/nims/dsuseDoc-main.jsp @@ -352,13 +352,14 @@ return; } + let filename = ''; let parameter = toQuery({ dscdmngIds : dscdmngIds.join(","), userId : "${currentUser.account}", deptCd: "${currentUser.deptCode}", adds12: ADDS12 }); - fetch(wctx.url("/adds/nims/getHwpForRptDoc.do") + "?" + parameter) + fetch(wctx.url("/adds/nims/getHwpForRptDoc.do?") + parameter) .then((response) => { let header = response.headers.get('Content-Disposition'); if(!header){ @@ -370,10 +371,11 @@ init: () => { setDialogZindex(); } }); }); - new Error(""); + return false; } + let parts = header.split(';'); - let filename = decodeURIComponent(parts[1].split('=')[1]); + filename = decodeURIComponent(parts[1].split('=')[1]); if(filename.startsWith("\"")){ filename = filename.substring(1); } @@ -396,7 +398,10 @@ $P.control.load($P.control.pageNum); } }) - .catch(()=>{}); + .catch((e)=>{ + //console.error(e); + //alert(e) + }); }; // 업체 검색 버튼 이벤트