tags and new analytics new in budget
This commit is contained in:
@@ -28,8 +28,7 @@ const fetchTransactions = async (reload) => {
|
||||
loading.value = true;
|
||||
|
||||
try {
|
||||
|
||||
const response = await getTransactions(selectedSpace.value?.id, 'INSTANT', null, null, selectedUserId.value ? selectedUserId.value : null, null, reload ? offset.value : limit, reload ? 0 : offset.value);
|
||||
const response = await getTransactions( 'INSTANT', null, null, selectedUserId.value ? selectedUserId.value : null, null, reload ? offset.value : limit, reload ? 0 : offset.value);
|
||||
const newTransactions = response.data;
|
||||
|
||||
// Проверка на конец данных
|
||||
@@ -115,14 +114,14 @@ const selectedSpace = computed(() => spaceStore.space)
|
||||
|
||||
watch( selectedSpace, async (newValue, oldValue) => {
|
||||
if (newValue != oldValue) {
|
||||
await fetchTransactions(true)
|
||||
await fetchTransactions(false)
|
||||
}
|
||||
})
|
||||
const types = ref([])
|
||||
onMounted(async () => {
|
||||
EventBus.on('transactions-updated', fetchTransactions,true);
|
||||
if (selectedSpace.value){
|
||||
await fetchTransactions(); // Первоначальная загрузка данных
|
||||
await fetchTransactions(false); // Первоначальная загрузка данных
|
||||
|
||||
}
|
||||
// await fetchUsers();
|
||||
|
||||
Reference in New Issue
Block a user