Skip to content

Commit

Permalink
Merge pull request #72 from kodaline/develop_issue#67
Browse files Browse the repository at this point in the history
fix: admin page scroll
  • Loading branch information
zAlweNy26 authored Jan 4, 2024
2 parents b06cb67 + d4425e5 commit 6184e81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/views/HomeView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,9 @@ const wipeHistory = async () => {
if (res) messagesState.value.messages = []
}
const scrollToBottom = () => window.scrollTo({ behavior: 'smooth', left: 0, top: document.body.scrollHeight })
const scrollToBottom = () => {
if (useRoute().path === '/') window.scrollTo({ behavior: 'smooth', left: 0, top: document.body.scrollHeight })
}
</script>

<template>
Expand Down

0 comments on commit 6184e81

Please sign in to comment.