Skip to content

Commit

Permalink
Fix AuthMethods page
Browse files Browse the repository at this point in the history
  • Loading branch information
dyakovri committed Apr 7, 2024
1 parent c5c0ba1 commit 8d199ba
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/views/auth/OauthRegisterView.vue
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
<script setup lang="ts">
import { oauth2Methods } from '@/api/auth';
import { MySessionInfo, oauth2Methods } from '@/api/auth';
import { useRouter } from 'vue-router';
import { isAxiosError } from 'axios';
import IrdomLayout from '@/components/IrdomLayout.vue';
import { useToolbar } from '@/store/toolbar';
import { useProfileStore } from '@/store/profile';
import { AuthApi } from '@/api';
const router = useRouter();
const toolbar = useToolbar();
const profileStore = useProfileStore();
if (!profileStore.authMethods) {
AuthApi.getMe([MySessionInfo.AuthMethods]);
}
toolbar.setup({
title: 'Вход',
backUrl: '/auth',
Expand Down

0 comments on commit 8d199ba

Please sign in to comment.