This commit is contained in:
focp212@naver.com
2025-11-07 14:04:21 +09:00
parent 45cee4b53e
commit e5342f1d0a
35 changed files with 330 additions and 94 deletions

View File

@@ -140,6 +140,11 @@ export const AlimtalkListPage = () => {
&& rs.nextCursor !== pageParam.cursor
&& rs.content.length === DEFAULT_PAGE_PARAM.size
);
}).catch((e: any) => {
if(e.response?.data?.error?.message){
showAlert(e.response?.data?.error?.message);
return;
}
});
};
@@ -168,6 +173,11 @@ export const AlimtalkListPage = () => {
};
extensionAlimtalkDownloadExcel(params).then((rs: ExtensionAlimtalkDownloadExcelResponse) => {
console.log('Excel Download Status:', rs.status);
}).catch((e: any) => {
if(e.response?.data?.error?.message){
showAlert(e.response?.data?.error?.message);
return;
}
});
};
setEmailBottomSheetOn(false);

View File

@@ -110,23 +110,23 @@ const callSettingSave = () => {
virtureAccountRefundFlag: userVirtureAccountRefundFlag
},
};
alimtalkSettingSave(params)
.then((rs) => {
if (rs.status) {
snackBar(t('additionalService.alimtalk.saveSuccess'));
} else {
snackBar(`[${t('common.failed')}] ${rs.error?.message}`)
}
})
.catch((e) => {
const failReason = e?.response?.data?.message || e?.message || t('additionalService.alimtalk.unknownError');
console.log(e)
if (e.response?.data?.error?.root !== "SystemErrorCode") {
snackBar(`[${t('common.failed')}] ${failReason}`);
} else {
showAlert(`[${t('common.failed')}] ${failReason}`)
}
});
alimtalkSettingSave(params).then((rs) => {
if(rs.status){
snackBar(t('additionalService.alimtalk.saveSuccess'));
}
else{
snackBar(`[${t('common.failed')}] ${rs.error?.message}`)
}
}).catch((e) => {
const failReason = e?.response?.data?.message || e?.message || t('additionalService.alimtalk.unknownError');
console.log(e)
if (e.response?.data?.error?.root !== "SystemErrorCode") {
snackBar(`[${t('common.failed')}] ${failReason}`);
}
else{
showAlert(`[${t('common.failed')}] ${failReason}`)
}
});
};
useSetHeaderTitle(t('additionalService.alimtalk.title'));