From 46720229fc15b005c5eaf5c953353d0e6e823c6e Mon Sep 17 00:00:00 2001 From: keyy1315 Date: Thu, 29 May 2025 08:59:09 +0900 Subject: [PATCH] feat: add postcode popup page publish MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 조회 된 데이터 없을 때의 tr 추가 --- .env.development | 2 +- .env.localhost | 2 +- src/components/popup/ZipCodePopup.tsx | 7 +++++++ src/config/config.local.ts | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.env.development b/.env.development index 2034c56..4e9cecf 100644 --- a/.env.development +++ b/.env.development @@ -2,7 +2,7 @@ NEXT_PUBLIC_RUN_MODE=development # 모바일 디바이스로 로컬 서버 확인하려면 자신 IP 주소로 변경 # 다시 로컬에서 개발할때는 localhost로 변경 #route handler -NEXT_PUBLIC_API_URL=http://172.30.1.23:3000 +NEXT_PUBLIC_API_URL=http://172.30.1.15:3000 #qsp 로그인 api NEXT_PUBLIC_QSP_API_URL=http://1.248.227.176:8120 diff --git a/.env.localhost b/.env.localhost index 844bc76..9b35606 100644 --- a/.env.localhost +++ b/.env.localhost @@ -2,7 +2,7 @@ NEXT_PUBLIC_RUN_MODE=local # 모바일 디바이스로 로컬 서버 확인하려면 자신 IP 주소로 변경 # 다시 로컬에서 개발할때는 localhost로 변경 #route handler -NEXT_PUBLIC_API_URL=http://172.30.1.23:3000 +NEXT_PUBLIC_API_URL=http://172.30.1.15:3000 #qsp 로그인 api NEXT_PUBLIC_QSP_API_URL=http://1.248.227.176:8120 diff --git a/src/components/popup/ZipCodePopup.tsx b/src/components/popup/ZipCodePopup.tsx index e468af3..5bf8f7a 100644 --- a/src/components/popup/ZipCodePopup.tsx +++ b/src/components/popup/ZipCodePopup.tsx @@ -107,6 +107,13 @@ export default function ZipCodePopup() { {item.address3} ))} + {addressInfo?.length === 0 && ( + + +
조회된 데이터가 없습니다.
+ + + )} diff --git a/src/config/config.local.ts b/src/config/config.local.ts index 8fbf68b..5498826 100644 --- a/src/config/config.local.ts +++ b/src/config/config.local.ts @@ -1,7 +1,7 @@ import getConfigs from '@/config/config.common' // 환경마다 달라져야 할 변수, 값들을 정의합니다. (여기는 local 환경에 맞는 값을 지정합니다.) -const baseUrl = 'http://172.30.1.23:3000' +const baseUrl = 'http://172.30.1.15:3000' const mode = 'local' // 환경마다 달라져야 할 값들을 getConfig 함수에 전달합니다.