migrate user profile page to composition API and typescript

This commit is contained in:
MaysWind
2025-01-20 23:56:09 +08:00
parent 9d9e6ef9bd
commit f4998da4cd
10 changed files with 824 additions and 980 deletions
+10
View File
@@ -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 {