diff --git a/packages/vuepress-theme-reco/components/PageInfo.vue b/packages/vuepress-theme-reco/components/PageInfo.vue index 9caa2b7..19296d2 100644 --- a/packages/vuepress-theme-reco/components/PageInfo.vue +++ b/packages/vuepress-theme-reco/components/PageInfo.vue @@ -85,7 +85,9 @@ export default { }, methods: { goTags (tag) { - this.$router.push({ path: `/tags/${tag}/` }) + if (this.$route.path !== `/tag/${tag}/`) { + this.$router.push({ path: `/tag/${tag}/` }) + } } } } diff --git a/packages/vuepress-theme-reco/layouts/Tag.vue b/packages/vuepress-theme-reco/layouts/Tag.vue index 7f761c1..0bcfdf8 100644 --- a/packages/vuepress-theme-reco/layouts/Tag.vue +++ b/packages/vuepress-theme-reco/layouts/Tag.vue @@ -71,7 +71,9 @@ export default { this.$emit('currentTag', tag) }, tagClick (tagInfo) { - this.$router.push({ path: tagInfo.path }) + if (this.$route.path !== tagInfo.path) { + this.$router.push({ path: tagInfo.path }) + } }, // 获取当前页码 getCurrentPage (page) { diff --git a/packages/vuepress-theme-reco/layouts/Tags.vue b/packages/vuepress-theme-reco/layouts/Tags.vue index aecf550..96ba7c5 100644 --- a/packages/vuepress-theme-reco/layouts/Tags.vue +++ b/packages/vuepress-theme-reco/layouts/Tags.vue @@ -63,7 +63,9 @@ export default { methods: { tagClick (tagInfo) { - this.$router.push({ path: tagInfo.path }) + if (this.$route.path !== tagInfo.path) { + this.$router.push({ path: tagInfo.path }) + } }, getCurrentTag (tag) { diff --git a/packages/vuepress-theme-reco/styles/theme.styl b/packages/vuepress-theme-reco/styles/theme.styl index 535eb7e..24ab575 100644 --- a/packages/vuepress-theme-reco/styles/theme.styl +++ b/packages/vuepress-theme-reco/styles/theme.styl @@ -73,6 +73,10 @@ body img max-width 100% +.abstract + img + max-width 100% + a font-weight 500 color $accentColor