diff --git a/src/components/CompendiumPage.vue b/src/components/CompendiumPage.vue index 7510befe..049e34ba 100644 --- a/src/components/CompendiumPage.vue +++ b/src/components/CompendiumPage.vue @@ -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'; @@ -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; @@ -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();