add yandex route yo store

This commit is contained in:
Максим Демидов 2024-02-16 21:46:01 +10:00
parent 5bda27a6bc
commit 53307a0794
2 changed files with 2 additions and 1 deletions

View File

@ -50,7 +50,7 @@ export const useAuthStore = defineStore(Stores.AUTH, () => {
const res = await loginYandex();
const redirect_url = res.data
console.log(res.data);
window.location.href = res.data;
window.location.href = redirect_url;
} catch (e: any) {
console.log(e.response.data.message)
} finally {

View File

@ -12,6 +12,7 @@ export enum Routes {
LIBRARY = 'library',
SUPPORT = 'support',
PROFILE = 'profile',
YANDEX_PROCESSING = 'login/yandex/processing'
}
export type AuthData = {