Added Automatic ZIP Completion

This commit is contained in:
2024-04-10 11:14:57 +02:00
parent bf04b9c563
commit bb158c1353
3 changed files with 29 additions and 19 deletions

View File

@@ -1,4 +1,5 @@
<script setup>
definePageMeta({
middleware: "auth"
})
@@ -48,6 +49,10 @@ const cancelEditorCreate = () => {
}
const setCityByZip = async () => {
itemInfo.value.infoData.city = await useZipCheck(itemInfo.value.infoData.zip)
}
setupPage()
</script>
@@ -301,6 +306,7 @@ setupPage()
>
<UInput
v-model="itemInfo.infoData.zip"
@focusout="setCityByZip"
/>
</UFormGroup>
<UFormGroup