File tree Expand file tree Collapse file tree 4 files changed +13
-3
lines changed
packages/vuepress-theme-reco Expand file tree Collapse file tree 4 files changed +13
-3
lines changed Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff line change 7373 img
7474 max-width 100%
7575
76+ .abstract
77+ img
78+ max-width 100%
79+
7680a
7781 font-weight 500
7882 color $accentColor
You can’t perform that action at this time.
0 commit comments