docs: update ad doc
parent
93cf802b51
commit
05658b7165
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<div class="markdown api-container">
|
||||
<GoogleAds />
|
||||
<GoogleAds v-if="showAd" />
|
||||
<slot v-if="isZhCN" name="cn" />
|
||||
<slot v-else />
|
||||
</div>
|
||||
|
@ -8,6 +8,8 @@
|
|||
<script>
|
||||
import { isZhCN } from '../util';
|
||||
import GoogleAds from './GoogleAds';
|
||||
|
||||
const showAd = location.host.indexOf('antdv.com') > -1;
|
||||
export default {
|
||||
name: 'Api',
|
||||
components: {
|
||||
|
@ -18,6 +20,7 @@ export default {
|
|||
},
|
||||
data() {
|
||||
return {
|
||||
showAd,
|
||||
isZhCN: isZhCN(this.demoContext.name),
|
||||
};
|
||||
},
|
||||
|
|
|
@ -329,7 +329,7 @@ export default {
|
|||
],
|
||||
}}
|
||||
></router-view>
|
||||
<GoogleAds key={`GoogleAds_${$route.path}`} />
|
||||
{showAd ? <GoogleAds key={`GoogleAds_${$route.path}`} /> : null}
|
||||
</div>
|
||||
) : (
|
||||
''
|
||||
|
|
Loading…
Reference in New Issue