This commit is contained in:
kakkokari-gtyih 2024-12-19 15:39:16 +09:00
parent e286545b56
commit 2a8f6c9535

View file

@ -39,7 +39,7 @@ import FormSlot from '@/components/form/slot.vue';
import MkInfo from '@/components/MkInfo.vue';
import { selectFile } from '@/scripts/select-file.js';
import * as os from '@/os.js';
import { signinRequired, updateAccount } from '@/account.js';
import { signinRequired, updateAccountPartial } from '@/account.js';
import type { TutorialPageCommonExpose } from '@/components/MkTutorial.vue';
const $i = signinRequired();
@ -58,7 +58,7 @@ watch(name, () => {
text: i18n.ts.yourNameContainsProhibitedWordsDescription,
},
});
updateAccount({ name: name.value });
updateAccountPartial({ name: name.value });
});
watch(description, () => {
@ -67,7 +67,7 @@ watch(description, () => {
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
description: description.value || null,
});
updateAccount({ description: description.value });
updateAccountPartial({ description: description.value });
});
function setAvatar(ev: MouseEvent) {
@ -90,7 +90,7 @@ function setAvatar(ev: MouseEvent) {
const i = await os.apiWithDialog('i/update', {
avatarId: originalOrCropped.id,
});
updateAccount({ avatarId: i.avatarId, avatarUrl: i.avatarUrl });
updateAccountPartial({ avatarId: i.avatarId, avatarUrl: i.avatarUrl });
});
}