Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mentalisit committed May 30, 2024
1 parent e398a02 commit e2ee3c2
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/components/CompendiumPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ import { Guild as Guild2, Identity as Identity2, User as User2, Compendium as Cl
import client, { init as clientInit, switchInstance } from '@Utils/compendium';
import memberImage from '@Img/icons/member.png';
import types from '@/store/types';
import types2 from '@/store/modules/userSettings/types';
import Modal, { SIZES } from '@/components/Modal.vue';
Expand All @@ -170,13 +169,6 @@ const linkText = computed(() => {
onMounted(async () => {
isFetching.value = true;
if ('client' in router.currentRoute.value.query) {
defaultSwitchClient.value = parseInt(router.currentRoute.value.query.client as string, 10);
selectClient(parseInt(router.currentRoute.value.query.client as string, 10));
}
if ('lang' in router.currentRoute.value.query) {
store.commit(types2.SET_LANGUAGE, router.currentRoute.value.query.lang as string);
}
await clientInit();
const u = client.value.getUser();
isFetching.value = false;
Expand All @@ -188,6 +180,10 @@ onMounted(async () => {
reqCode.value = router.currentRoute.value.query.c as string;
await applyReqCode();
}
if ('client' in router.currentRoute.value.query) {
defaultSwitchClient.value = parseInt(router.currentRoute.value.query.client as string, 10);
selectClient(parseInt(router.currentRoute.value.query.client as string, 10));
}
} else {
user.value = u;
guild.value = client.value.getGuild();
Expand Down

0 comments on commit e2ee3c2

Please sign in to comment.