diff --git a/src/components/anchor/anchor.vue b/src/components/anchor/anchor.vue index 38529ac..7b38ee0 100644 --- a/src/components/anchor/anchor.vue +++ b/src/components/anchor/anchor.vue @@ -79,7 +79,6 @@ export default { this.getCurrentScrollAtTitleId(scrollTop); }, turnTo (href) { - const oldHref = this.currentLink; this.currentLink = href; this.$router.push({ path: href @@ -180,7 +179,7 @@ export default { } }, mounted () { - this.init() + this.init(); }, beforeDestroy () { this.removeListener(); -- libgit2 0.21.4