From 9a23bb2ed24b984e4fd000964a3878fbc96b6e20 Mon Sep 17 00:00:00 2001 From: carlosfonseca Date: Fri, 26 Jan 2024 11:08:45 -0500 Subject: [PATCH] Se corrige comentario 39968 --- .../Customer/Card/CustomerBillingData.vue | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/pages/Customer/Card/CustomerBillingData.vue b/src/pages/Customer/Card/CustomerBillingData.vue index a455e6db2..1543eac7a 100644 --- a/src/pages/Customer/Card/CustomerBillingData.vue +++ b/src/pages/Customer/Card/CustomerBillingData.vue @@ -18,18 +18,28 @@ const route = useRoute(); const payMethods = ref([]); const bankEntitiesOptions = ref([]); +const bankEntitiesRef = ref(null); -onMounted(() => getBankEntities()); +const filter = { + fields: ['id', 'bic', 'name'], + order: 'bic ASC', + limit: 30, +}; -const getBankEntities = async () => { - const filter = { fields: ['id', 'bic', 'name'], order: 'bic ASC', limit: 30 }; - const { data } = await axios.get('BankEntities', { filter }); - bankEntitiesOptions.value = data; +const getBankEntities = () => { + bankEntitiesRef.value.fetch(); };