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); -});