From 13547f8a2ab85797629083dd80f40f686225fd16 Mon Sep 17 00:00:00 2001 From: ysCha Date: Thu, 12 Jun 2025 13:08:31 +0900 Subject: [PATCH] =?UTF-8?q?[1104]=20=EC=9A=B0=ED=8E=B8=EB=B2=88=ED=98=B8?= =?UTF-8?q?=EB=A5=BC=20=EA=B2=80=EC=83=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/management/StuffDetail.jsx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/components/management/StuffDetail.jsx b/src/components/management/StuffDetail.jsx index 7f40e780..df8b235f 100644 --- a/src/components/management/StuffDetail.jsx +++ b/src/components/management/StuffDetail.jsx @@ -952,9 +952,18 @@ export default function StuffDetail() { //팝업에서 넘어온 우편정보 const setZipInfo = (info) => { - setPrefValue(info.prefId) - form.setValue('prefId', info.prefId) - form.setValue('prefName', info.address1) + + prefCodeList.map((row) => { + if (row.prefName == info.address1) { + setPrefValue(row.prefId) + form.setValue('prefId', row.prefId) + form.setValue('prefName', info.address1) + } + }) + + //setPrefValue(info.prefId) + // form.setValue('prefId', info.prefId) + // form.setValue('prefName', info.address1) form.setValue('address', info.address2 + info.address3) form.setValue('zipNo', info.zipNo) }