add yandex route yo store
This commit is contained in:
parent
5bda27a6bc
commit
53307a0794
@ -50,7 +50,7 @@ export const useAuthStore = defineStore(Stores.AUTH, () => {
|
|||||||
const res = await loginYandex();
|
const res = await loginYandex();
|
||||||
const redirect_url = res.data
|
const redirect_url = res.data
|
||||||
console.log(res.data);
|
console.log(res.data);
|
||||||
window.location.href = res.data;
|
window.location.href = redirect_url;
|
||||||
} catch (e: any) {
|
} catch (e: any) {
|
||||||
console.log(e.response.data.message)
|
console.log(e.response.data.message)
|
||||||
} finally {
|
} finally {
|
||||||
|
@ -12,6 +12,7 @@ export enum Routes {
|
|||||||
LIBRARY = 'library',
|
LIBRARY = 'library',
|
||||||
SUPPORT = 'support',
|
SUPPORT = 'support',
|
||||||
PROFILE = 'profile',
|
PROFILE = 'profile',
|
||||||
|
YANDEX_PROCESSING = 'login/yandex/processing'
|
||||||
}
|
}
|
||||||
|
|
||||||
export type AuthData = {
|
export type AuthData = {
|
||||||
|
Loading…
Reference in New Issue
Block a user