fix the incorrect order in account list when there are more than one accounts with multiple sub-accounts in one category

This commit is contained in:
MaysWind
2025-02-19 22:53:52 +08:00
parent a9a37b0c97
commit 7fca519fd9
2 changed files with 37 additions and 4 deletions
+2 -2
View File
@@ -47,7 +47,7 @@ export const useAccountsStore = defineStore('accounts', () => {
}
}
return Account.sortAccounts(allAccountsList);
return Account.sortAccounts(allAccountsList, allAccountsMap.value);
});
const allVisiblePlainAccounts = computed<Account[]>(() => {
@@ -72,7 +72,7 @@ export const useAccountsStore = defineStore('accounts', () => {
}
}
return Account.sortAccounts(allVisibleAccounts);
return Account.sortAccounts(allVisibleAccounts, allAccountsMap.value);
});
const allAvailableAccountsCount = computed<number>(() => {