Skip to content

Commit 23c3786

Browse files
committed
fix: router jump
1 parent fe7f612 commit 23c3786

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

components/PageInfo.vue

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,11 @@ export default {
4949
}
5050
}
5151
},
52-
53-
mounted () {
54-
console.log(1234, this.isHome)
55-
},
5652
5753
methods: {
5854
goTags (tag) {
59-
window.location.href = `/tag/#?tag=${tag}`
55+
const base = this.$site.base
56+
window.location.href = `${base}tag/#?tag=${tag}`
6057
}
6158
}
6259
}

layouts/Category.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
:class="title.trim() == item.name ? 'active': ''"
1010
v-for="(item, index) in this.$categories.list"
1111
:key="index">
12-
<a :href="item.path">
12+
<router-link :to="item.path">
1313
<span class="category-name">{{ item.name }}</span>
1414
<span class="post-num">{{ item.posts.length }}</span>
15-
</a>
15+
</router-link>
1616
</li>
1717
</ul>
1818

0 commit comments

Comments
 (0)