fix: errors
This commit is contained in:
@@ -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' })
|
||||
|
||||
@@ -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 })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user