@daeryun/dr_components 0.9.37 → 0.9.38
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,7 +195,8 @@ const StepTwo = () => {
|
|
|
195
195
|
// API 호출 함수
|
|
196
196
|
const fetchFieldData = (centerCode) => __awaiter(void 0, void 0, void 0, function* () {
|
|
197
197
|
try {
|
|
198
|
-
|
|
198
|
+
// 기존 프록시 패턴 따라서 변경
|
|
199
|
+
const response = yield fetch(`/api/mng/app/seo-template/field/list-by-center?center_code=${centerCode}`);
|
|
199
200
|
if (!response.ok) {
|
|
200
201
|
throw new Error(`API 호출 실패: ${response.status}`);
|
|
201
202
|
}
|
|
@@ -248,9 +248,8 @@ const StepTwo = () => {
|
|
|
248
248
|
// API 호출 함수
|
|
249
249
|
const fetchFieldData = async (centerCode: string) => {
|
|
250
250
|
try {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
);
|
|
251
|
+
// 기존 프록시 패턴 따라서 변경
|
|
252
|
+
const response = await fetch(`/api/mng/app/seo-template/field/list-by-center?center_code=${centerCode}`);
|
|
254
253
|
|
|
255
254
|
if (!response.ok) {
|
|
256
255
|
throw new Error(`API 호출 실패: ${response.status}`);
|
|
@@ -263,7 +262,6 @@ const StepTwo = () => {
|
|
|
263
262
|
return { result: false, data: [] };
|
|
264
263
|
}
|
|
265
264
|
};
|
|
266
|
-
|
|
267
265
|
const data1 = {
|
|
268
266
|
result: true,
|
|
269
267
|
data: [
|