fix(vuepress-theme-reco): fix tag & abstract error

1. tag click 404
2. img max-width in abstract
This commit is contained in:
zsw 2020-05-06 21:47:04 +08:00
parent 44f9d0eb14
commit 97d8196225
4 changed files with 13 additions and 3 deletions

View File

@ -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}/` })
}
}
}
}

View File

@ -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) {

View File

@ -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) {

View File

@ -73,6 +73,10 @@ body
img
max-width 100%
.abstract
img
max-width 100%
a
font-weight 500
color $accentColor