mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 08:14:25 +08:00
migrate user profile page to composition API and typescript
This commit is contained in:
@@ -215,6 +215,16 @@ export class Account implements AccountInfoResponse {
|
||||
|
||||
return accounts;
|
||||
}
|
||||
|
||||
public static findAccountNameById(accounts: Account[], accountId: string, defaultName?: string): string | undefined {
|
||||
for (const account of accounts) {
|
||||
if (account.id === accountId) {
|
||||
return account.name;
|
||||
}
|
||||
}
|
||||
|
||||
return defaultName;
|
||||
}
|
||||
}
|
||||
|
||||
export interface AccountCreateRequest {
|
||||
|
||||
Reference in New Issue
Block a user