fix(frontend): /iのレスポンスに含まれないプロパティが消えずに残り続ける問題を修正

This commit is contained in:
syuilo
2024-10-21 19:59:20 +09:00
parent c4f1ca2fd9
commit 70b2a8f72e
6 changed files with 34 additions and 23 deletions

View File

@@ -84,7 +84,7 @@ import FormSection from '@/components/form/section.vue';
import MkFolder from '@/components/MkFolder.vue';
import MkLink from '@/components/MkLink.vue';
import * as os from '@/os.js';
import { signinRequired, updateAccount } from '@/account.js';
import { signinRequired, updateAccountPartial } from '@/account.js';
import { i18n } from '@/i18n.js';
const $i = signinRequired();
@@ -123,7 +123,7 @@ async function unregisterTOTP(): Promise<void> {
password: auth.result.password,
token: auth.result.token,
}).then(res => {
updateAccount({
updateAccountPartial({
twoFactorEnabled: false,
});
}).catch(error => {