Auto scrollTo hash

master
git 8 years ago
parent 815500dbd6
commit 94a09ce045

@ -57,7 +57,7 @@ import marked from 'marked'
export default {
mounted() {
// auto screenTop hash
// auto scrollTo hash
if (this.$route.hash) {
let el = document.querySelector(this.$route.hash)
if (el) {

Loading…
Cancel
Save