mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 17:24:26 +08:00
when a sub-account is deleted, set the currently selected account to its parent account
This commit is contained in:
@@ -598,6 +598,7 @@ function remove(account: Account): void {
|
|||||||
accountsStore.deleteSubAccount({
|
accountsStore.deleteSubAccount({
|
||||||
subAccount: subAccount
|
subAccount: subAccount
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
activeSubAccount.value[account.id] = '';
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user