Skip to content

Commit 599ac29

Browse files
author
reco_luan
committed
Merge branch 'develop' of github.com:recoluan/vuepress-theme-reco into develop
2 parents 0121096 + 97d8196 commit 599ac29

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

packages/vuepress-theme-reco/components/PageInfo.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ export default {
8585
},
8686
methods: {
8787
goTags (tag) {
88-
this.$router.push({ path: `/tags/${tag}/` })
88+
if (this.$route.path !== `/tag/${tag}/`) {
89+
this.$router.push({ path: `/tag/${tag}/` })
90+
}
8991
}
9092
}
9193
}

packages/vuepress-theme-reco/layouts/Tag.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ export default {
7171
this.$emit('currentTag', tag)
7272
},
7373
tagClick (tagInfo) {
74-
this.$router.push({ path: tagInfo.path })
74+
if (this.$route.path !== tagInfo.path) {
75+
this.$router.push({ path: tagInfo.path })
76+
}
7577
},
7678
// 获取当前页码
7779
getCurrentPage (page) {

packages/vuepress-theme-reco/layouts/Tags.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,9 @@ export default {
6363
methods: {
6464
6565
tagClick (tagInfo) {
66-
this.$router.push({ path: tagInfo.path })
66+
if (this.$route.path !== tagInfo.path) {
67+
this.$router.push({ path: tagInfo.path })
68+
}
6769
},
6870
6971
getCurrentTag (tag) {

packages/vuepress-theme-reco/styles/theme.styl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ body
7373
img
7474
max-width 100%
7575

76+
.abstract
77+
img
78+
max-width 100%
79+
7680
a
7781
font-weight 500
7882
color $accentColor

0 commit comments

Comments
 (0)