Skip to content

Commit 6cd099d

Browse files
committed
doc: add google ad
1 parent 07907ca commit 6cd099d

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

site/src/components/rice/top_rice.vue

+6-6
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
</a-carousel>
1111
</template>
1212
<template v-else-if="showGoogleAd">
13-
<template v-if="isCN">
13+
<!-- <template v-if="isCN">
1414
<WWAds :key="`WWAds_${$route.path}`" />
15-
</template>
16-
<google-ads-top v-else :key="`GoogleAdsTop_${$route.path}`" />
15+
</template> -->
16+
<google-ads-top :key="`GoogleAdsTop_${$route.path}`" />
1717
</template>
1818
</div>
1919
</template>
@@ -23,19 +23,19 @@ import dayjs from 'dayjs';
2323
import isBetween from 'dayjs/plugin/isBetween';
2424
dayjs.extend(isBetween);
2525
import GoogleAdsTop from './GoogleAdsTop.vue';
26-
import WWAds from './WWAds.vue';
26+
// import WWAds from './WWAds.vue';
2727
const isEffective = (start, end) => {
2828
return dayjs().isBetween(start, end);
2929
};
3030
export default {
3131
components: {
3232
GoogleAdsTop,
33-
WWAds,
33+
// WWAds,
3434
},
3535
props: ['isCN', 'isMobile'],
3636
data() {
3737
return {
38-
show: false,
38+
show: true,
3939
showGoogleAd: location.host.indexOf('antdv.com') > -1,
4040
cnAds: [
4141
{

site/src/layouts/index.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@
3737
</template>
3838
<a-col :xxxl="20" :xxl="20" :xl="19" :lg="18" :md="18" :sm="24" :xs="24">
3939
<section :class="mainContainerClass">
40-
<!-- <TopAd :is-c-n="isZhCN" /> -->
4140
<WWAdsVue v-if="isZhCN" />
41+
<TopAd v-else />
4242
<Demo v-if="isDemo" :page-data="pageData" :is-zh-c-n="isZhCN">
4343
<component :is="matchCom" />
4444
</Demo>

0 commit comments

Comments
 (0)