()
| 116 | |
| 117 | // 获取当前账户 |
| 118 | export function getCurrentAccount(): Account | null { |
| 119 | const { account } = stores |
| 120 | if (!account.currentAccountId) return null |
| 121 | return account.getById(account.currentAccountId) || null |
| 122 | } |
| 123 | |
| 124 | // 获取所有账户 |
| 125 | export function getAllAccounts(): Account[] { |