master
git 8 years ago
parent d07f4bf5f2
commit 57cd9c4425

@ -1103,9 +1103,9 @@ module.exports = function listToStyles(parentId, list) {
/* harmony default export */ __webpack_exports__["a"] = ({
mounted: function mounted() {
// auto screenTop hash
// auto scrollTo hash
if (this.$route.hash) {
var el = document.querySelector(this.$route.hash);
var el = document.querySelector(decodeURIComponent(this.$route.hash));
if (el) {
window.scrollTo(0, el.offsetTop);
}

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save