Refine and clean files and variables (#10)

This commit is contained in:
AceDataCloud committed 2024-01-02 01:27:14 +08:00
1 parent 0e6018e9b2
commit 6e980c7c34
45 files changed
+98 -522

No files matched your search

+2 -2
View File
@@ -38,10 +38,10 @@ export default defineComponent({
const user = await this.$store.dispatch('getUser');
this.user = user;
if (this.redirect) {
this.$router.push(this.redirect);
await this.$router.push(this.redirect);
}
} else {
this.$router.push({ name: ROUTE_AUTH_LOGIN });
await this.$router.push({ name: ROUTE_AUTH_LOGIN });
}
}
});
+3 -3
View File
@@ -1,5 +1,5 @@
<script lang="ts">
import { getAuthBaseUrl, getHubBaseUrl } from '@/utils';
import { getBaseUrlAuth, getBaseUrlHub } from '@/utils';
import { defineComponent } from 'vue';
interface IData {
@@ -14,8 +14,8 @@ export default defineComponent({
};
},
async mounted() {
const hubBaseUrl = getHubBaseUrl();
const authBaseUrl = getAuthBaseUrl();
const hubBaseUrl = getBaseUrlHub();
const authBaseUrl = getBaseUrlAuth();
// callback url used to init access token and then redirect back of `redirect`
const callbackUrl = `${hubBaseUrl}/auth/callback?redirect=${this.redirect}`;
// redirect to auth service to get access token then redirect back