From d1e11b0c0a76dc0ce4129026b16a873a834b7c14 Mon Sep 17 00:00:00 2001 From: AceDataCloud Date: Sun, 5 Mar 2023 23:52:57 +0800 Subject: [PATCH] update auth callback --- src/pages/auth/Callback.vue | 2 +- src/pages/auth/Login.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/auth/Callback.vue b/src/pages/auth/Callback.vue index 6807648c..f2b0ec6c 100644 --- a/src/pages/auth/Callback.vue +++ b/src/pages/auth/Callback.vue @@ -42,7 +42,7 @@ export default defineComponent({ // callback url used to init access token and then redirect back of `redirect` const callbackUrl = `${dataBaseUrl}/auth/callback?redirect=${this.redirect}`; // redirect to auth service to get access token then redirect back - const targetUrl = `${authBaseUrl}?redirect=${callbackUrl}`; + const targetUrl = `${authBaseUrl}/auth/login?redirect=${callbackUrl}`; window.location.href = targetUrl; } } diff --git a/src/pages/auth/Login.vue b/src/pages/auth/Login.vue index 7ac29897..063dc10b 100644 --- a/src/pages/auth/Login.vue +++ b/src/pages/auth/Login.vue @@ -19,7 +19,7 @@ export default defineComponent({ // callback url used to init access token and then redirect back of `redirect` const callbackUrl = `${dataBaseUrl}/auth/callback?redirect=${this.redirect}`; // redirect to auth service to get access token then redirect back - const targetUrl = `${authBaseUrl}?redirect=${callbackUrl}`; + const targetUrl = `${authBaseUrl}/auth/login?redirect=${callbackUrl}`; window.location.href = targetUrl; }, methods: {}