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 79 this.getCurrentScrollAtTitleId(scrollTop);
80 80 },
81 81 turnTo (href) {
82   - const oldHref = this.currentLink;
83 82 this.currentLink = href;
84 83 this.$router.push({
85 84 path: href
... ... @@ -180,7 +179,7 @@ export default {
180 179 }
181 180 },
182 181 mounted () {
183   - this.init()
  182 + this.init();
184 183 },
185 184 beforeDestroy () {
186 185 this.removeListener();
... ...