We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19f2da0 commit 2f505aaCopy full SHA for 2f505aa
components/FriendLink.vue
@@ -53,12 +53,15 @@ export default {
53
},
54
computed: {
55
dataAddColor () {
56
- let friendLink = this.$themeConfig.friendLink
57
- friendLink = friendLink.length > 0 ? friendLink.map(item => ({
58
- ...item,
59
- color: this._tagColor()
60
- })) : []
61
- return friendLink
+ let { friendLink } = this.$themeConfig
+ if (friendLink && friendLink.length > 0) {
+ friendLink = friendLink.map(item => ({
+ ...item,
+ color: this._tagColor()
+ }))
62
+ return friendLink
63
+ }
64
+ return []
65
}
66
67
methods: {
0 commit comments