update auth callback

This commit is contained in:
AceDataCloud committed 2023-03-05 23:52:57 +08:00
1 parent e6d10dbc6a
commit d1e11b0c0a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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;
}
}
+1 -1
View File
@@ -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: {}