Commit a1fb47909282959ab1c5d1c93695c04f1783f340

Authored by zhigang.li
1 parent 43513f70

update

update
Showing 1 changed file with 1 additions and 2 deletions   Show diff stats
src/components/anchor/anchor.vue
@@ -79,7 +79,6 @@ export default { @@ -79,7 +79,6 @@ export default {
79 this.getCurrentScrollAtTitleId(scrollTop); 79 this.getCurrentScrollAtTitleId(scrollTop);
80 }, 80 },
81 turnTo (href) { 81 turnTo (href) {
82 - const oldHref = this.currentLink;  
83 this.currentLink = href; 82 this.currentLink = href;
84 this.$router.push({ 83 this.$router.push({
85 path: href 84 path: href
@@ -180,7 +179,7 @@ export default { @@ -180,7 +179,7 @@ export default {
180 } 179 }
181 }, 180 },
182 mounted () { 181 mounted () {
183 - this.init() 182 + this.init();
184 }, 183 },
185 beforeDestroy () { 184 beforeDestroy () {
186 this.removeListener(); 185 this.removeListener();