Skip to content

Commit 4903c56

Browse files
committed
docs(theme): 为广告和用户图片添加data-nosnippet属性
1 parent c41f299 commit 4903c56

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

docs/.vitepress/theme/components/HomeCompanyGroup.vue

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,45 +6,45 @@
66
</div>
77
<div class="grid grid-cols-3">
88
<a class="flex items-center justify-center" href="#">
9-
<img :width="240" src="/user/ali.jpg" alt="阿里云">
9+
<img :width="240" src="/user/ali.jpg" alt="阿里云" data-nosnippet>
1010
</a>
1111
<a class="flex items-center justify-center" href="#">
12-
<img :width="240" src="/user/zijie.jpg" alt="zijie">
12+
<img :width="240" src="/user/zijie.jpg" alt="zijie" data-nosnippet>
1313
</a>
1414
<a class="flex items-center justify-center" href="#">
15-
<img :width="240" src="/user/tengxun.png" alt="腾讯">
15+
<img :width="240" src="/user/tengxun.png" alt="腾讯" data-nosnippet>
1616
</a>
1717
<a class="flex items-center justify-center" href="#">
18-
<img :width="240" src="/user/ea.jpg" alt="EA">
18+
<img :width="240" src="/user/ea.jpg" alt="EA" data-nosnippet>
1919
</a>
2020
<a class="flex items-center justify-center" href="#">
21-
<img :width="240" src="/user/douyu.jpg" alt="斗鱼直播">
21+
<img :width="240" src="/user/douyu.jpg" alt="斗鱼直播" data-nosnippet>
2222
</a>
2323

2424
<a class="flex items-center justify-center" href="#">
25-
<img :width="220" src="/user/vivo.svg" alt="vivo">
25+
<img :width="220" src="/user/vivo.svg" alt="vivo" data-nosnippet>
2626
</a>
2727
<a class="flex items-center justify-center" href="#">
28-
<img :width="240" src="/user/anker.png" alt="安克">
28+
<img :width="240" src="/user/anker.png" alt="安克" data-nosnippet>
2929
</a>
3030
<a class="flex items-center justify-center min-h-[173px]" href="#">
31-
<img :width="240" src="/user/shenxinfu.png" alt="深信服">
31+
<img :width="240" src="/user/shenxinfu.png" alt="深信服" data-nosnippet>
3232
</a>
3333

3434
<a class="flex items-center justify-center" href="#">
35-
<img :width="240" src="/user/cadence.jpeg" alt="cadence">
35+
<img :width="240" src="/user/cadence.jpeg" alt="cadence" data-nosnippet>
3636
</a>
3737

3838
<a class="flex items-center justify-center" href="#">
39-
<img :width="240" src="/user/transsion.svg" alt="传音控股">
39+
<img :width="240" src="/user/transsion.svg" alt="传音控股" data-nosnippet>
4040
</a>
4141

4242
<a class="flex items-center justify-center" href="#">
43-
<img :width="240" src="/user/mobile.png" alt="中国移动">
43+
<img :width="240" src="/user/mobile.png" alt="中国移动" data-nosnippet>
4444
</a>
4545

4646
<a class="flex items-center justify-center" href="#">
47-
<img :width="240" src="/user/huashu.png" alt="中国移动">
47+
<img :width="240" src="/user/huashu.png" alt="中国移动" data-nosnippet>
4848
</a>
4949

5050

@@ -54,7 +54,7 @@
5454
</div>
5555
<div class="company-box">
5656
<a class="company-box-item" target="_blank" v-for="(item , index) in ad" :key="index" :href="item.href">
57-
<img :src="item.img" :alt="item.href">
57+
<img :src="item.img" :alt="item.href" data-nosnippet>
5858
<div v-if="item.meta" style="margin-left: 20px">
5959
<div class="company-box-item-title">{{item.meta.title}}</div>
6060
<div class="company-box-item-description">{{item.meta.description}}</div>

docs/.vitepress/theme/components/liuliang.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<template>
22
<div class="fixed bottom-10 right-0 gap-2 flex flex-col z-[999] bg-white shadow p-2 rounded" v-if="showAD">
33
<a class="flex items-center justify-center rounded overflow-hidden" target="_blank" href="https://flipped-aurora.feishu.cn/wiki/HNnPwI9TbifCvwk51A2cLqOjnac?from=from_copylink">
4-
<img :width="160" src="/advertising/fwq.jpg" alt="成为代理">
4+
<img :width="160" src="/advertising/fwq.jpg" alt="成为代理" data-nosnippet>
55
</a>
66
<a class="flex items-center justify-center rounded overflow-hidden" target="_blank" href="https://plugin.gin-vue-admin.com/details/69">
7-
<img :width="160" src="/advertising/cms.png" alt="cms">
7+
<img :width="160" src="/advertising/cms.png" alt="cms" data-nosnippet>
88
</a>
99
<a class="flex items-center justify-center rounded overflow-hidden" target="_blank" href="https://plugin.gin-vue-admin.com/details/139">
10-
<img :width="160" src="/advertising/shop.jpg" alt="shop">
10+
<img :width="160" src="/advertising/shop.jpg" alt="shop" data-nosnippet>
1111
</a>
1212
</div>
1313
</template>

0 commit comments

Comments
 (0)