fix: errors

This commit is contained in:
2026-03-25 09:42:09 +01:00
parent 0c448c05c9
commit 5d1abafdd3
3 changed files with 5 additions and 7 deletions

View File

@@ -153,6 +153,7 @@ function validate() {
return errors
}
function saveAccount() {
const errors = validate()
if (errors.length) return
@@ -169,7 +170,7 @@ function saveAccount() {
vat: formData.value.vat,
companyAddressId: formData.value.companyAddressId,
billingAddressId: formData.value.billingAddressId,
companyAddress: selectedAddr || null
companyAddress : ''
})
router.push({ name: 'customer-data' })

View File

@@ -2,7 +2,7 @@
<component :is="Default || 'div'">
<div class="container mt-24">
<div class="row">
<div class="col-12">
<!-- <div class="col-12">
<h2 class="text-2xl">Category ID: {{ $route.params.category_id }}</h2>
<div v-for="(p, i) in products" :key="i">
<p>
@@ -10,7 +10,7 @@
<span class="border-b-1 bg-red-100 px-4">{{ p.price }}</span>
</p>
</div>
</div>
</div> -->
</div>
</div>
</component>
@@ -34,7 +34,7 @@ const products = ref([])
watch(() => route.params, async (n) => {
categoryStore.setCategoryID(parseInt(n.category_id as string))
const res = await categoryStore.getCategoryProducts()
products.value = res
// products.value = res
}, { immediate: true })