@daeryun/dr_components 0.9.38 → 0.9.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -195,8 +195,7 @@ const StepTwo = () => {
|
|
|
195
195
|
// API 호출 함수
|
|
196
196
|
const fetchFieldData = (centerCode) => __awaiter(void 0, void 0, void 0, function* () {
|
|
197
197
|
try {
|
|
198
|
-
|
|
199
|
-
const response = yield fetch(`/api/mng/app/seo-template/field/list-by-center?center_code=${centerCode}`);
|
|
198
|
+
const response = yield fetch(`https://mng.daeryunlaw.com/api/app/seo-template/field/list-by-center?center_code=${centerCode}`);
|
|
200
199
|
if (!response.ok) {
|
|
201
200
|
throw new Error(`API 호출 실패: ${response.status}`);
|
|
202
201
|
}
|
|
@@ -204,7 +203,7 @@ const StepTwo = () => {
|
|
|
204
203
|
return data;
|
|
205
204
|
}
|
|
206
205
|
catch (error) {
|
|
207
|
-
console.error(`
|
|
206
|
+
console.error(`API 호출 실패:`, error);
|
|
208
207
|
return { result: false, data: [] };
|
|
209
208
|
}
|
|
210
209
|
});
|
|
@@ -248,8 +248,9 @@ const StepTwo = () => {
|
|
|
248
248
|
// API 호출 함수
|
|
249
249
|
const fetchFieldData = async (centerCode: string) => {
|
|
250
250
|
try {
|
|
251
|
-
|
|
252
|
-
|
|
251
|
+
const response = await fetch(
|
|
252
|
+
`https://mng.daeryunlaw.com/api/app/seo-template/field/list-by-center?center_code=${centerCode}`
|
|
253
|
+
);
|
|
253
254
|
|
|
254
255
|
if (!response.ok) {
|
|
255
256
|
throw new Error(`API 호출 실패: ${response.status}`);
|
|
@@ -258,10 +259,11 @@ const StepTwo = () => {
|
|
|
258
259
|
const data = await response.json();
|
|
259
260
|
return data;
|
|
260
261
|
} catch (error) {
|
|
261
|
-
console.error(`
|
|
262
|
+
console.error(`API 호출 실패:`, error);
|
|
262
263
|
return { result: false, data: [] };
|
|
263
264
|
}
|
|
264
265
|
};
|
|
266
|
+
|
|
265
267
|
const data1 = {
|
|
266
268
|
result: true,
|
|
267
269
|
data: [
|