This commit is contained in:
leejunho 2023-12-21 15:43:22 +09:00
parent 25ea2d43b9
commit 595954959d

View File

@ -168,6 +168,8 @@
var form = document.resultForm; var form = document.resultForm;
var data = new FormData(form); var data = new FormData(form);
var resultData = null;
$.ajax({ $.ajax({
type: "POST", type: "POST",
enctype: 'multipart/form-data', enctype: 'multipart/form-data',
@ -185,9 +187,9 @@
if(result == 'loginFail'){ if(result == 'loginFail'){
alert("로그인이 필요합니다."); alert("로그인이 필요합니다.");
return false; return false;
}else if(result == 'success'){ }else if(result == 'SUCCESS'){
// alert("OCR 처리요청이 완료되었습니다."); // alert("OCR 처리요청이 완료되었습니다.");
data = returnData.data; resultData = returnData.data;
} }
} else if(status== 'fail'){ } else if(status== 'fail'){
@ -197,7 +199,7 @@
error: function (e) { alert("저장에 실패하였습니다."); console.log("ERROR : ", e); } error: function (e) { alert("저장에 실패하였습니다."); console.log("ERROR : ", e); }
}); });
return data; return resultData;
} }
function alertMessage(msg){ function alertMessage(msg){