fix: errors
This commit is contained in:
3
bo/components.d.ts
vendored
3
bo/components.d.ts
vendored
@@ -13,13 +13,11 @@ declare module 'vue' {
|
||||
export interface GlobalComponents {
|
||||
Cart1: typeof import('./src/components/customer/Cart1.vue')['default']
|
||||
CategoryMenu: typeof import('./src/components/inner/categoryMenu.vue')['default']
|
||||
CompanyAccountView: typeof import('./src/components/customer/CompanyAccountView.vue')['default']
|
||||
Cs_PrivacyPolicyView: typeof import('./src/components/terms/cs_PrivacyPolicyView.vue')['default']
|
||||
Cs_TermsAndConditionsView: typeof import('./src/components/terms/cs_TermsAndConditionsView.vue')['default']
|
||||
En_PrivacyPolicyView: typeof import('./src/components/terms/en_PrivacyPolicyView.vue')['default']
|
||||
En_TermsAndConditionsView: typeof import('./src/components/terms/en_TermsAndConditionsView.vue')['default']
|
||||
LangSwitch: typeof import('./src/components/inner/langSwitch.vue')['default']
|
||||
PageAccount: typeof import('./src/components/customer/PageAccount.vue')['default']
|
||||
PageAddresses: typeof import('./src/components/customer/PageAddresses.vue')['default']
|
||||
PageCart: typeof import('./src/components/customer/PageCart.vue')['default']
|
||||
PageCreateAccount: typeof import('./src/components/customer/PageCreateAccount.vue')['default']
|
||||
@@ -48,7 +46,6 @@ declare module 'vue' {
|
||||
UInput: typeof import('./node_modules/@nuxt/ui/dist/runtime/components/Input.vue')['default']
|
||||
UInputNumber: typeof import('./node_modules/@nuxt/ui/dist/runtime/components/InputNumber.vue')['default']
|
||||
UModal: typeof import('./node_modules/@nuxt/ui/dist/runtime/components/Modal.vue')['default']
|
||||
UNavigationMenu: typeof import('./node_modules/@nuxt/ui/dist/runtime/components/NavigationMenu.vue')['default']
|
||||
UPagination: typeof import('./node_modules/@nuxt/ui/dist/runtime/components/Pagination.vue')['default']
|
||||
USelect: typeof import('./node_modules/@nuxt/ui/dist/runtime/components/Select.vue')['default']
|
||||
USelectMenu: typeof import('./node_modules/@nuxt/ui/dist/runtime/components/SelectMenu.vue')['default']
|
||||
|
||||
@@ -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