docs: add ICP license (#12893)

This commit is contained in:
neverland
2024-05-28 21:51:19 +08:00
committed by GitHub
parent c56337e7f3
commit 1cd6050a3b
2 changed files with 25 additions and 0 deletions
+21
View File
@@ -11,6 +11,11 @@
:dark-mode-class="darkModeClass"
>
<router-view />
<div class="van-doc-icp" v-if="icpLicense">
<a :href="icpLicense.link" target="_black">
{{ icpLicense.text }}
</a>
</div>
</van-doc>
</div>
</template>
@@ -64,6 +69,13 @@ export default {
return config.site;
},
icpLicense() {
if (this.lang === 'zh-CN') {
return config.site.icpLicense;
}
return null;
},
versions() {
return config.site.versions || null;
},
@@ -144,4 +156,13 @@ export default {
margin-bottom: 20px;
}
}
.van-doc-icp {
font-size: 14px;
text-align: center;
a {
color: #bbb;
}
}
</style>