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