From fc3c80d60dd4944c698367e63d0bc265cb5f3ec7 Mon Sep 17 00:00:00 2001 From: carlossa Date: Wed, 4 Dec 2024 10:35:33 +0100 Subject: [PATCH] fix: refs #8114 fix lifeCycle hooks --- src/pages/Order/OrderList.vue | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pages/Order/OrderList.vue b/src/pages/Order/OrderList.vue index dc614dbb0..dfeb0f6e2 100644 --- a/src/pages/Order/OrderList.vue +++ b/src/pages/Order/OrderList.vue @@ -141,6 +141,12 @@ const columns = computed(() => [ ], }, ]); +onMounted(() => { + if (!route.query.createForm) return; + const clientId = route.query.createForm; + const id = JSON.parse(clientId); + fetchClientAddress(id.clientFk); +}); async function fetchClientAddress(id, formData = {}) { const { data } = await axios.get( @@ -169,12 +175,6 @@ const getDateColor = (date) => { if (comparation == 0) return 'bg-warning'; if (comparation < 0) return 'bg-success'; }; -onMounted(() => { - if (!route.query.createForm) return; - const clientId = route.query.createForm; - const id = JSON.parse(clientId); - fetchClientAddress(id.clientFk); -});