Skip to content

Commit 1e44507

Browse files
author
reco_luan
committed
fix: Adjust parameter name
1 parent 884e7a8 commit 1e44507

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

components/Common.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
:class="pageClasses"
55
@touchstart="onTouchStart"
66
@touchend="onTouchEnd">
7-
<div v-if="absoluteSecrecy">
7+
<div v-if="absoluteEncryption">
88
<transition name="fade">
99
<LoadingPage v-if="firstLoad" />
1010
<Password v-else-if="!isHasKey" />
@@ -106,8 +106,8 @@ export default {
106106
},
107107
108108
computed: {
109-
absoluteSecrecy () {
110-
return this.$themeConfig.keyPage && this.$themeConfig.keyPage.absoluteSecrecy === true
109+
absoluteEncryption () {
110+
return this.$themeConfig.keyPage && this.$themeConfig.keyPage.absoluteEncryption === true
111111
},
112112
// 是否显示评论
113113
shouldShowComments () {

components/FriendLink.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
class="popup-window"
1919
:style="popupWindowStyle"
2020
ref="popupWindow">
21-
<div class="avatar">
21+
<div class="logo">
2222
<img :src="getImgUrl(item)" />
2323
</div>
2424
<div class="info">
@@ -91,9 +91,9 @@ export default {
9191
currentDom.querySelector('.popup-window-wrapper').style.display = 'none'
9292
},
9393
getImgUrl (info) {
94-
const { avatar, email } = info
95-
if (avatar && /^http/.test(avatar)) return avatar
96-
if (avatar && !/^http/.test(avatar)) return this.$withBase(avatar)
94+
const { logo, email } = info
95+
if (logo && /^http/.test(logo)) return logo
96+
if (logo && !/^http/.test(logo)) return this.$withBase(logo)
9797
return `http://1.gravatar.com/avatar/${this.getMd5(email || '')}?s=50&amp;d=mm&amp;r=x`
9898
},
9999
_adjustPosition (dom) {
@@ -154,7 +154,7 @@ export default {
154154
box-sizing border-box
155155
padding .8rem 1rem
156156
width 300px
157-
.avatar
157+
.logo
158158
margin-right .4rem
159159
width 2rem
160160
height 2rem

components/NoteAbstract.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
:item="item"
88
:currentPage="currentPage"
99
:currentTag="currentTag"
10-
:hideAccessNumber="hideAccessNumber"
1110
v-show="index >= (currentPage * 10 - 10) && index < currentPage * 10"/>
1211
</div>
1312
<div v-else-if="listLoadType === 'async'" key="async">
@@ -31,6 +30,7 @@ export default {
3130
computed: {
3231
listLoadType () {
3332
const valineConfig = this.$themeConfig.valineConfig
33+
if (this.$frontmatter.home) return 'async'
3434
if (valineConfig && !valineConfig.hideListAccessNumber) {
3535
return 'sync'
3636
} else {

0 commit comments

Comments
 (0)