diff options
| author | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-04-16 09:25:13 +0900 |
|---|---|---|
| committer | syuilo <4439005+syuilo@users.noreply.github.com> | 2025-04-16 09:25:13 +0900 |
| commit | 75267f87d5248c4fc573e7dabdb9d3fae364a0ca (patch) | |
| tree | 08f4e347f28471f347bb77652a6aaea53a3bbc10 /packages/frontend/src/components | |
| parent | refactor(frontend): MkHorizontalSwipe -> MkSwiper (diff) | |
| download | sharkey-75267f87d5248c4fc573e7dabdb9d3fae364a0ca.tar.gz sharkey-75267f87d5248c4fc573e7dabdb9d3fae364a0ca.tar.bz2 sharkey-75267f87d5248c4fc573e7dabdb9d3fae364a0ca.zip | |
refactor(frontend): アカウント情報はstore管理に
Diffstat (limited to 'packages/frontend/src/components')
| -rw-r--r-- | packages/frontend/src/components/MkAuthConfirm.vue | 4 | ||||
| -rw-r--r-- | packages/frontend/src/components/MkPostForm.vue | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/frontend/src/components/MkAuthConfirm.vue b/packages/frontend/src/components/MkAuthConfirm.vue index 00bf8e68d9..b3331d742b 100644 --- a/packages/frontend/src/components/MkAuthConfirm.vue +++ b/packages/frontend/src/components/MkAuthConfirm.vue @@ -157,7 +157,7 @@ async function init() { const accounts = await getAccounts(); - const accountIdsToFetch = accounts.map(a => a.user.id).filter(id => !users.value.has(id)); + const accountIdsToFetch = accounts.map(a => a.id).filter(id => !users.value.has(id)); if (accountIdsToFetch.length > 0) { const usersRes = await misskeyApi('users/show', { @@ -169,7 +169,7 @@ async function init() { users.value.set(user.id, { ...user, - token: accounts.find(a => a.user.id === user.id)!.token, + token: accounts.find(a => a.id === user.id)!.token, }); } } diff --git a/packages/frontend/src/components/MkPostForm.vue b/packages/frontend/src/components/MkPostForm.vue index e43ff65e1d..c4857b7f65 100644 --- a/packages/frontend/src/components/MkPostForm.vue +++ b/packages/frontend/src/components/MkPostForm.vue @@ -879,7 +879,7 @@ async function post(ev?: MouseEvent) { if (postAccount.value) { const storedAccounts = await getAccounts(); - token = storedAccounts.find(x => x.user.id === postAccount.value?.id)?.token; + token = storedAccounts.find(x => x.id === postAccount.value?.id)?.token; } posting.value = true; |