update deployment

This commit is contained in:
AceDataCloud committed 2023-12-18 02:38:24 +08:00
1 parent 6119d2d9c3
commit ded672001b
17 files changed
+40 -81

No files matched your search

+3 -3
View File
@@ -1,5 +1,5 @@
<script lang="ts">
import { getAuthBaseUrl, getChatBaseUrl } from '@/utils';
import { getAuthBaseUrl, getHubBaseUrl } from '@/utils';
import { defineComponent } from 'vue';
interface IData {
@@ -14,10 +14,10 @@ export default defineComponent({
};
},
async mounted() {
const chatBaseUrl = getChatBaseUrl();
const hubBaseUrl = getHubBaseUrl();
const authBaseUrl = getAuthBaseUrl();
// callback url used to init access token and then redirect back of `redirect`
const callbackUrl = `${chatBaseUrl}/auth/callback?redirect=${this.redirect}`;
const callbackUrl = `${hubBaseUrl}/auth/callback?redirect=${this.redirect}`;
// redirect to auth service to get access token then redirect back
const targetUrl = `${authBaseUrl}/auth/login?redirect=${callbackUrl}`;
window.location.href = targetUrl;