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"] = ({ /* harmony default export */ __webpack_exports__["a"] = ({
mounted: function mounted() { mounted: function mounted() {
// auto screenTop hash // auto scrollTo hash
if (this.$route.hash) { if (this.$route.hash) {
var el = document.querySelector(this.$route.hash); var el = document.querySelector(decodeURIComponent(this.$route.hash));
if (el) { if (el) {
window.scrollTo(0, el.offsetTop); window.scrollTo(0, el.offsetTop);
} }

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