diff --git a/packages/vant-cli/site/desktop/App.vue b/packages/vant-cli/site/desktop/App.vue
index 5140cbc2a..f5ca431ff 100644
--- a/packages/vant-cli/site/desktop/App.vue
+++ b/packages/vant-cli/site/desktop/App.vue
@@ -11,6 +11,11 @@
:dark-mode-class="darkModeClass"
>
+
@@ -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;
+ }
+}
diff --git a/packages/vant/vant.config.mjs b/packages/vant/vant.config.mjs
index c01bb8f83..f64c7462c 100644
--- a/packages/vant/vant.config.mjs
+++ b/packages/vant/vant.config.mjs
@@ -33,6 +33,10 @@ export default {
baiduAnalytics: {
seed: 'af5d41bc4e446e76665dbe3ec18d55c3',
},
+ icpLicense: {
+ text: '浙ICP备2021036118号',
+ link: 'https://beian.miit.gov.cn/',
+ },
headHtml: `