Skip to content

Commit 46ca784

Browse files
author
reco_luan
committed
fix: fix show access number when not use valine
1 parent 3abb42c commit 46ca784

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/Page.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<div v-show="recoShowModule" class="page-title">
99
<h1>{{$page.title}}</h1>
1010
<hr>
11-
<PageInfo :pageInfo="$page" :showAccessNumber="true"></PageInfo>
11+
<PageInfo :pageInfo="$page" :showAccessNumber="showAccessNumber"></PageInfo>
1212
</div>
1313
</ModuleTransition>
1414

@@ -98,6 +98,9 @@ export default {
9898
},
9999
100100
computed: {
101+
showAccessNumber () {
102+
return this.$themeConfig.commentsSolution === 'valine'
103+
},
101104
lastUpdated () {
102105
return this.$page.lastUpdated
103106
},

0 commit comments

Comments
 (0)