vitepress-theme-element-plus 1.4.1 → 1.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,7 +6,7 @@ import { computed } from 'vue'
|
|
|
6
6
|
|
|
7
7
|
const { isHome } = useLayout()
|
|
8
8
|
const { theme } = useData()
|
|
9
|
-
const blogroll = theme.value.footer?.blogroll
|
|
9
|
+
const blogroll = computed(() => theme.value.footer?.blogroll ?? [])
|
|
10
10
|
|
|
11
11
|
const linkUnderline = computed(() => {
|
|
12
12
|
const underlineProp = (ElLink as any)?.props?.underline
|
|
@@ -20,7 +20,7 @@ const linkUnderline = computed(() => {
|
|
|
20
20
|
</script>
|
|
21
21
|
|
|
22
22
|
<template>
|
|
23
|
-
<footer v-if="blogroll
|
|
23
|
+
<footer v-if="blogroll.length" class="footer" :class="{ 'is-home': isHome }">
|
|
24
24
|
<div v-for="item of blogroll" :key="item.title" class="footer-main">
|
|
25
25
|
<h4>{{ item.title }}</h4>
|
|
26
26
|
<ElLink
|