From a1fb47909282959ab1c5d1c93695c04f1783f340 Mon Sep 17 00:00:00 2001 From: zhigang.li Date: Thu, 12 Apr 2018 17:52:49 +0800 Subject: [PATCH] update --- src/components/anchor/anchor.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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