Skip to content

Commit

Permalink
- Накинкул TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
fizfakovets committed Aug 6, 2023
1 parent d48be36 commit d77882d
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/api/controllers/auth/AuthApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class AuthApi {
async () => {
const profileStore = useProfileStore();
profileStore.deleteToken();
location.reload();
location.reload(); // TODO: придумать нормальное решение
},
[showErrorToast],
[checkToken],
Expand Down
2 changes: 1 addition & 1 deletion src/api/controllers/auth/decorators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export function checkToken<F extends Func<any, any>>(method: F): Func<Promise<Re
const { deleteToken } = useProfileStore();
const toastStore = useToastStore();
deleteToken();
location.reload();
location.reload(); // TODO: придумать нормальное решение
toastStore.push({ title: 'Сессия истекла' });
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/IrdomAuthButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ onMounted(async () => {
const clickHandler = async () => {
if (props.unlink) {
await props.button.api.unregister();
location.reload();
location.reload(); // TODO: придумать нормальное решение
} else if (authUrl.value) {
window.open(authUrl.value, '_blank');
}
Expand Down
2 changes: 0 additions & 2 deletions src/views/auth/OauthLoginView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import { onMounted } from 'vue';
import { useRouter } from 'vue-router';
const router = useRouter();
// const currentPath = window.location.origin + router.currentRoute.value.fullPath;
// const telegramBotName = computed(() => import.meta.env.VITE_AUTH_TELEGRAM_BOT);
onMounted(async () => {
const authMethod: AuthOauth2BaseApi | undefined = oauth2Methods[router.currentRoute.value.path];
Expand Down

0 comments on commit d77882d

Please sign in to comment.