Skip to content

Commit 6184e81

Browse files
authored
Merge pull request #72 from kodaline/develop_issue#67
fix: admin page scroll
2 parents b06cb67 + d4425e5 commit 6184e81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/views/HomeView.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ const wipeHistory = async () => {
163163
if (res) messagesState.value.messages = []
164164
}
165165
166-
const scrollToBottom = () => window.scrollTo({ behavior: 'smooth', left: 0, top: document.body.scrollHeight })
166+
const scrollToBottom = () => {
167+
if (useRoute().path === '/') window.scrollTo({ behavior: 'smooth', left: 0, top: document.body.scrollHeight })
168+
}
167169
</script>
168170

169171
<template>

0 commit comments

Comments
 (0)