[1104] 우편번호를 검색

This commit is contained in:
ysCha 2025-06-12 13:08:31 +09:00
parent 87e70d51c1
commit 13547f8a2a

View File

@ -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)
}