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 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 {
|
||||
|
@ -12,6 +12,7 @@ export enum Routes {
|
||||
LIBRARY = 'library',
|
||||
SUPPORT = 'support',
|
||||
PROFILE = 'profile',
|
||||
YANDEX_PROCESSING = 'login/yandex/processing'
|
||||
}
|
||||
|
||||
export type AuthData = {
|
||||
|
Loading…
Reference in New Issue
Block a user