modify method name

This commit is contained in:
MaysWind
2025-03-23 14:59:06 +08:00
parent fc2c5a8e6c
commit ab4fc8faf5
11 changed files with 18 additions and 18 deletions
@@ -139,13 +139,13 @@ export function useAccountEditPageBaseBase() {
}
function setAccount(newAccount: Account): void {
account.value.from(newAccount);
account.value.fillFrom(newAccount);
subAccounts.value = [];
if (newAccount.subAccounts && newAccount.subAccounts.length > 0) {
for (let i = 0; i < newAccount.subAccounts.length; i++) {
const subAccount = account.value.createNewSubAccount(userStore.currentUserDefaultCurrency, getCurrentUnixTime());
subAccount.from(newAccount.subAccounts[i]);
const subAccount: Account = account.value.createNewSubAccount(userStore.currentUserDefaultCurrency, getCurrentUnixTime());
subAccount.fillFrom(newAccount.subAccounts[i]);
subAccounts.value.push(subAccount);
}
+3 -3
View File
@@ -151,12 +151,12 @@ export function useUserProfilePageBase() {
function setCurrentUserProfile(profile: UserBasicInfo): void {
emailVerified.value = profile.emailVerified;
oldProfile.value.from(profile);
newProfile.value.from(oldProfile.value);
oldProfile.value.fillFrom(profile);
newProfile.value.fillFrom(oldProfile.value);
}
function reset(): void {
newProfile.value.from(oldProfile.value);
newProfile.value.fillFrom(oldProfile.value);
}
function doAfterProfileUpdate(user: UserBasicInfo): void {