File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
packages/vuepress-theme-reco Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change 2525 <img src =" https://img.alicdn.com/tfs/TB1..50QpXXXXX7XpXXXXXXXXXX-40-40.png" alt =" " >
2626 <a :href =" $themeConfig.cyberSecurityLink || '#'" >{{ $themeConfig.cyberSecurityRecord }}</a >
2727 </p >
28+ <Comments :isShowComments =" false" />
2829 </div >
2930</template >
3031
Original file line number Diff line number Diff line change @@ -96,12 +96,9 @@ export default {
9696 computed: {
9797 // 是否显示评论
9898 shouldShowComments () {
99- const { isShowComments , home } = this .$frontmatter
100- return ! (
101- this .isComment == false ||
102- isShowComments == false ||
103- home == true
104- )
99+ const { isShowComments } = this .$frontmatter
100+ const { showComment } = this .$themeConfig .valineConfig || { showComment: true }
101+ return (showComment !== false && isShowComments !== false ) || (showComment === false && isShowComments === true )
105102 },
106103 showAccessNumber () {
107104 return this .$themeConfig .valineConfig !== undefined
Original file line number Diff line number Diff line change 22 <Common >
33 <component v-if =" $frontmatter.home" :is =" homeCom" />
44 <Page v-else :sidebar-items =" sidebarItems" />
5- <Comments :isShowComments =" false" />
65 <Footer v-if =" $frontmatter.home" class =" footer" />
76 </Common >
87</template >
You can’t perform that action at this time.
0 commit comments