From 5d9df64c00ece179a2aafa846399d9b972217129 Mon Sep 17 00:00:00 2001 From: Ilya Date: Sun, 29 Sep 2024 22:33:49 +0300 Subject: [PATCH] debugging oauth methods (#240) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Изменения Добавил логи для оаутха, чтобы понять, почему они не обновляются. Убрал условие на проверку стора. ## Детали реализации --- src/views/profile/ProfileEditAuthView.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/profile/ProfileEditAuthView.vue b/src/views/profile/ProfileEditAuthView.vue index 06f6d86a..f4b2c7c9 100644 --- a/src/views/profile/ProfileEditAuthView.vue +++ b/src/views/profile/ProfileEditAuthView.vue @@ -20,9 +20,9 @@ onMounted(async () => { profileStore.updateToken(history.state.token); delete history.state.token; } - if (profileStore.authMethods?.length == 0) { - AuthApi.getMe(['auth_methods']); - } + console.log(profileStore.authMethods); + AuthApi.getMe(['auth_methods']); + console.log(profileStore.authMethods); }); const canLinked = computed(() =>