🚑 Fix login not redirect to home page
This commit is contained in:
parent
d90a34435f
commit
8c14b9fde5
@ -19,7 +19,7 @@
|
|||||||
<v-btn
|
<v-btn
|
||||||
icon="mdi-exit-to-app"
|
icon="mdi-exit-to-app"
|
||||||
class="text-high-emphasis text-white"
|
class="text-high-emphasis text-white"
|
||||||
v-on:click="logout(false, false)"
|
v-on:click="logoutAndRedirect()"
|
||||||
></v-btn>
|
></v-btn>
|
||||||
</v-list-item-avatar>
|
</v-list-item-avatar>
|
||||||
</template>
|
</template>
|
||||||
@ -44,6 +44,11 @@ function getAvatar() {
|
|||||||
const avatarBaseUrl = import.meta.env.VITE_DISCORD_USER_AVATAR_URL;
|
const avatarBaseUrl = import.meta.env.VITE_DISCORD_USER_AVATAR_URL;
|
||||||
return avatarBaseUrl + userStore.discordId + "/" + avatar.value + ".png";
|
return avatarBaseUrl + userStore.discordId + "/" + avatar.value + ".png";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function logoutAndRedirect() {
|
||||||
|
logout(false, false);
|
||||||
|
window.location.assign("/");
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped></style>
|
<style scoped></style>
|
||||||
|
@ -12,8 +12,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
const test = import.meta.env.VITE_OAUTH_REDIRECT_URL;
|
window.location.assign(import.meta.env.VITE_OAUTH_REDIRECT_URL);
|
||||||
window.location.href = import.meta.env.VITE_OAUTH_REDIRECT_URL;
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped></style>
|
<style scoped></style>
|
||||||
|
Loading…
Reference in New Issue
Block a user