|
|
@@ -1153,6 +1153,14 @@
|
|
|
return useAxios().post("/deli/updateDeliveryInfo", updateData);
|
|
|
}, "배송정보를 업데이트하는 중...")
|
|
|
.then((res) => {
|
|
|
+ console.log('배송정보 업데이트 응답:', res.data);
|
|
|
+ if (res.data.debug_logs) {
|
|
|
+ console.log('=== 디버그 로그 ===');
|
|
|
+ res.data.debug_logs.forEach((log, index) => {
|
|
|
+ console.log(`${index + 1}. ${log}`);
|
|
|
+ });
|
|
|
+ console.log('================');
|
|
|
+ }
|
|
|
$toast.success(`${res.data.updated_count}건의 배송정보가 업데이트되었습니다.`);
|
|
|
|
|
|
// 배송 관리 목록으로 이동
|
|
|
@@ -1167,6 +1175,14 @@
|
|
|
});
|
|
|
})
|
|
|
.catch((error) => {
|
|
|
+ console.log('배송정보 업데이트 에러:', error);
|
|
|
+ if (error.response?.data?.debug_logs) {
|
|
|
+ console.log('=== 에러 디버그 로그 ===');
|
|
|
+ error.response.data.debug_logs.forEach((log, index) => {
|
|
|
+ console.log(`${index + 1}. ${log}`);
|
|
|
+ });
|
|
|
+ console.log('====================');
|
|
|
+ }
|
|
|
const errorHandler = useErrorHandler();
|
|
|
errorHandler.handleApiError(error, "배송정보 업데이트");
|
|
|
});
|