Skip to content

Commit

Permalink
fix: go to bottom
Browse files Browse the repository at this point in the history
  • Loading branch information
Renovamen committed Feb 4, 2021
1 parent f8c085f commit 5fad11c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions example/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module.exports = {
description: 'A blog theme for VuePress.',
sns: {
"github": "Renovamen",
"linkedin": "xiaohan-zou-55bba0160",
"linkedin": "xiaohan-zou-55bba0160",
"facebook": "renovamen.zou",
"twitter": "renovamen_zxh",
"zhihu": "chao-neng-gui-su",
Expand Down Expand Up @@ -115,4 +115,4 @@ module.exports = {
// lineNumbers: true,
extractHeaders: [ 'h2', 'h3', 'h4', 'h5' ]
}
}
}
2 changes: 1 addition & 1 deletion packages/theme-gungnir/components/Menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export default {
})
},
goToBottom() {
var docuHeight = document.body.offsetHeight
var docuHeight = document.getElementById('theme-container').offsetHeight
window.scrollTo({
top: docuHeight,
behavior: 'smooth'
Expand Down

1 comment on commit 5fad11c

@vercel
Copy link

@vercel vercel bot commented on 5fad11c Feb 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.